npm install kinvey-nativescript-sdk
Want to see how the rest of your backend is evolving? Check out the timeline.
Our SDKs are now open source! If you'd like to contribute code, suggest improvements or just take a look at how things work, check out the source on github.
instanceId
as a config option to init()
. This will setup the backend and Mobile Identity Connect API urls to use your instanceId
properly. #278Kinvey.init({
appKey: '<appKey>',
appSecret: '<appSecret>'
instanceId: '<my-subdomain>'
});
entitlements.plist
file to allow users to login while testing apps using the iOS simulator. #281Object.keys()
in Query.isSupportedOffline()
. #245es6-promise
for promises in live service related files instead of native promises. #272Enhancement: Allow NativeScript apps to read appKey
, appSecret
and masterSecret
from the package.json
file, instead of passing them as parameters to Kinvey.init()
. #261
Enhancement: The default API version used by Mobile Identity Connect is now v3
. #259 #268
Enhancement: Auto Pagination Support. #260
The Kinvey backend imposes a limit of 10,000 entities on data requests. If your app needs to pull a larger number of entities to the cache, you can request the SDK to "auto-paginate". The SDK will then retrieve the entire set of entities page by page. This feature only applies to Cache and Sync stores.
var dataStore = Kinvey.DataStore.collection('books', Kinvey.DataStoreType.Sync);
//Pull the entire collection page by page.
var promise = dataStore.pull(null, { autoPagination: true })
.then(function onSuccess(count) {
// "count" represents the number of entities retrieved
}).catch(function onError(error) {
// ...
});
DataStore.pull()
returned an array of the retrieved entities. With this release, the response of pull
has changed to the count of retrieved entities.
If you need the array of entities retrieved by a pull
in your app, you should call find
after the pull
has completed.
CacheStore
methods create()
and update()
can now handle more concurrent requests.CacheStore.delete()
method now applies the same query both locally and against the backend, instead of making separate "by-id" requests for entities found in the cache.clear()
method for a CacheStore
or SyncStore
now clears the sync queue.WebSQL
are now cached. #241Number.isNaN()
so we added a polyfill. #243LiveServiceFacade
instead of LiveService
. #254version
property to RequestOptions
in the TypeScript definition file #235_id
field not returned when specifying fields for a query #233WebView
events to capture redirect #237Kinvey.init({
appKey: '<appKey>',
appSecret: '<appSecret>'
storage: Kinvey.StorageProvider.SQLite // or [Kinvey.StorageProvider.SQLite, Kinvey.StorageProvider.Memory]
});
// Possible Values
enum StorageProvider {
SQLite
Memory
}
var datastore = Kinvey.DataStore.collection('books', Kinvey.DataStore.Sync, { tag: 'Kinvey' }); // Tag the datastore
var query = new Kinvey.Query().equalTo('author', 'Kinvey');
datastore.pull(query)
.then(function() {
return datastore.find().toPromise();
})
.then(function(books) {
// all of these books have Kinvey as their author
});
null
or undefined
value for the sort field. #205Object.prototype.assign()
. #225null
and undefined
values to be used in a equal
and notEqual
query #201Push
module. Please use import { Push } from 'kinvey-nativescript-sdk';
instead of import { Push } from 'kinvey-nativescript-sdk/push';
. #28micId
to the client_id
value when it makes a request to authenticate with Mobile Identity Connect.hard
equal to false
. Please refer to the User Guide for more information.Too Many Files Open
to appear. #12SELECT
operation from removeById. #13We recommend using the latest version.
Version | Download | Date |
---|---|---|
3.10.2 | Mar 29, 2018 | |
3.10.1 | Mar 13, 2018 | |
3.10.0 | Feb 26, 2018 | |
3.9.10 | Feb 9, 2018 | |
3.9.9 | Jan 26, 2018 | |
3.9.7 | Jan 12, 2018 | |
3.9.4 | Dec 14, 2017 | |
3.9.2 | Oct 5, 2017 | |
3.8.0 | Aug 24, 2017 | |
3.7.2 | Jul 28, 2017 | |
3.7.1 | Jul 8, 2017 | |
3.7.0 | Jun 28, 2017 | |
3.6.0-ns.6 | Jun 21, 2017 | |
3.6.0-ns.5 | Jun 21, 2017 | |
3.6.0-ns.3 | Apr 24, 2017 |