Page 1 of 1

(HTML) Local Storage not accessible on Android

Posted: Fri Nov 29, 2013 3:47 am
by Siyaman
HTML 5 JS API localStorage is not accessible on Android LongRange when using WebView. I'm currently using a Samsung Galaxy S3 with Longrange 1.0.6 with Android 4.2. The same setup on iPhone works without a problem.
My code looks as follows

Code: Select all

function loadUsername() {
    if(isWebStorageSupported()==false) return;
    if (localStorage.username) {
        $scope.username = localStorage.username;
        $scope.isSaveUsername = true;
    }
}

Re: (HTML) Local Storage not accessible on Android

Posted: Fri Nov 29, 2013 1:44 pm
by tsupartono
This is currently being looked at - we'll post some more details once they become available.

Our recommendation for now is to use the SQLite API to store local data (LONGRANGE.SQLDB).