As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
SecurityError code 18 when accessing local store in IOS 9.2.1 and Chrome 55.0.2883.79
W
Wonkun Kim
started a topic
almost 7 years ago
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);
});
Best Answer
P
Pranav J
said
almost 7 years ago
Wonkun,
Just updating this forum ticket as this issue has been resolved in Angular SDK 3.3.4.
Thanks, Pranav Kinvey
1 Comment
P
Pranav J
said
almost 7 years ago
Answer
Wonkun,
Just updating this forum ticket as this issue has been resolved in Angular SDK 3.3.4.
Wonkun Kim
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);
});
Just updating this forum ticket as this issue has been resolved in Angular SDK 3.3.4.
Thanks,
Pranav
Kinvey
Pranav J
Just updating this forum ticket as this issue has been resolved in Angular SDK 3.3.4.
Thanks,
Pranav
Kinvey
-
Why do I get "Undefined symbols" errors when building with KinveyKit?
-
How do I register push tokens?
-
When using social login, to perform a log-out, do I need to log out of the social network, Kinvey, o
-
How can I assign additional properties to users?
-
Does KinveyKit support 64-bit ARM devices, such as iPhone 5s?
-
Authorization Token Invalid or Expired
-
BOOL and how it is stored in the database.
-
Offline saving throwing errors
-
Custom endpoint not able to form request object
-
Security through business logic
See all 437 topics