Start a new topic
Answered

SecurityError code 18 when accessing local store in IOS 9.2.1 and Chrome 55.0.2883.79

In IOS 9.2.1 and Chrome (55.0.2883.79), kinvey angular SDK (3.2.2) returns 'SecurityError: DOM Exception 18' when my app tries to retrieve data from local store.


Here is my code snippet. 


var dataStore = $kinvey.DataStore.collection('Locations', $kinvey.DataStoreType.Sync);

var query = null;


dataStore.find(query).subscribe(

      function (entities) {

        // If no query and returned entities are empty

        // then try to pull from backend

        if (!query && (!entities || !entities.length)) {

          pull(collection).then(function (entities) {

            deferred.resolve(entities);

          }, function (error) {

            if (error.name === 'InsufficientCredentialsError') {

              authentication.logout();

            }

            deferred.reject(error);

          });

        }

        else {

          deferred.resolve(entities);

        }

      },

      function (error) {

        if (error.name === 'InsufficientCredentialsError') {

          authentication.logout();

        }

        deferred.reject(error);

      });


image



Best Answer
Wonkun,

Just updating this forum ticket as this issue has been resolved in Angular SDK 3.3.4.

Thanks,
Pranav
Kinvey

 

1 Comment

Answer
Wonkun,

Just updating this forum ticket as this issue has been resolved in Angular SDK 3.3.4.

Thanks,
Pranav
Kinvey

 

Login or Signup to post a comment