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.
me()
method. #596skip
and limit
and fetches up to 10000 items per call. #581lastLoginTime
to Kinvey metadata. #562signup()
. #430signup()
as an instance function on the User
class. #431https
to https:
. #423query.ascending()
and query.descending()
. #424query.exists()
. #425query.notContainedId()
. #426query.notEqualTo()
. #427query.or()
, query.and()
, and query.nor()
. #428TimeoutError
is will be thrown when a request times out.Network
datastore type. #414import { Kinvey } from 'kinvey-nativescript-sdk';
// You will need to set the API version to 5 when you initialize the SDK
Kinvey.init({
appKey: '<appKey>',
appSecret: '<appSecret>',
apiVersion: 5
});
// Insert an array of books using the new multi insert API
const newBooks = [
{ title: 'Kinvey' },
{ title: 'Progress' }
];
const store = Kinvey.DataStore.collection('Books', Kinvey.DataStoreType.Network);
await store.save(newBooks);
init()
returns some missing properties that were returned in v3.x. #411Auto
datastore type. This new datastore type prioritzes using the network first. If a network connection is not available then it will fall back to using the local cache until a network connection is re-established. #409Cache
datastore type. You should now use the Auto
datastore type to instead.initialize()
to initialize the SDK. You should use init()
instead.The sdk has been updated to allow you to use dependency injection in your NativeScript Angular apps. You can find out more information by taking a look at the updated Getting Started Guide.
loginWithMIC()
to work properly when viewing a NativeScript application with the NativeScript Preview App. #377AuthorizationGrant
if null
is provded to loginWithMIC()
. #372_socialIdentity
properly with response from /me
endpoint. #374 #375Files.findById()
is called without a file id. #373tns-core-module
package in the bundle. #363SFSafariViewController
on iOS and Chrome Custom Tabs
on Android. Register the custom scheme used by the app as the redirectUri
for MIC in the AndroidManifest.xml
on Android and the Info.plist
on iOS. #305 #362x-kinvey-custom-request-properties
header when creating an entity. #360Push.unregister()
on NativeScript to allow the passing of options. Fix the boolean logic in Push.register()
to allow interactive settings for push notifications to be registered for iOS on NativeScript. #359instanceId?: string
to ClientConfig
TypeScript definition. #341datastore.find()
. #342Kinvey.Files.downloadByUrl()
fails is now thrown properly. #333Push
TypeScript definitions. #335Kinvey.init()
error from being thrown when registering for Push. #336Authorization
header value when sending a request to refresh a MIC access token. #315Files.upload()
will be overridden with the size calculated by the SDK. #313_kmd.local
property on an entity before it is send to the backend. _kmd.local
is a property created by the SDK used to track if an entity was created using the SDK. #310redirectUri
response. #307User.me()
to update the active users data, any data that was deleted since the last call will also be removed from the active user stored on the device. #299onNext
function while using an observable will cause the onError
function to be called with the thrown error. The subscriber will also be unsubscribed from the observable. #302User.lookup()
#301package.json
for the Kinvey NativeScript SDK. This fixes an error when trying to import the push module for the Kinvey NativeScript SDK. #296var datastore = Kinvey.DataStore.collection('books');
// Turn on for datastore instance
datastore.useDeltaSet = true; // Default is false
// Pass options.useDeltaSet to override datastore default for a pull() request.
// It will use value of datastore.useDeltaSet as default.
var promise = datastore.pull(query, { useDeltaSet: true });
// Pass options.useDeltaSet to override datastore default for a pull() request.
// It will use value of datastore.useDeltaSet as default.
var promise = datastore.find(query, { useDeltaSet: true });
redirectUri
provided to mic.login()
is a string. If the redirectUri
is not a string then an Error
will be thrown. #283Push
module by default in the SDK bundle. #282Push
module to use the latest version of the NativeScript Push Plugin. onMessageReceived()
callback for Android was deprecated and added some new config options for iOS. #285kinveyFileTTL
and kinveyFileTLS
query parameters for KinveyFile references on a DataStore collection. #289var dataStore = Kinvey.DataStore.collection('pets');
dataStore.findById('3f583e9f-d064-4a25-a953-6cf0a3dc2ff1', { kinveyFileTTL: 3600, kinveyFileTLS: true })
.subscribe(function(pet) {
/*
{
"_id": "3f583e9f-d064-4a25-a953-6cf0a3dc2ff1",
"_acl": {...},
"dogName": "Bob",
"furColor": "brown with black spots",
"pawPrintPicture": {
"_type": "KinveyFile",
"_id": "325620e4-93dd-4a26-9f84-8a5e62c0db11",
"_filename": "bobsPawPrint.png",
"_acl": { ... },
"_downloadURL": <Google Cloud Storage download URL>,
"_expiresAt": "2018-06-18T23:07:23.394Z"
}
}
*/
}, function(error) {
// ...
});
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. #272appKey
, appSecret
and masterSecret
from the package.json
file, instead of passing them as parameters to Kinvey.init()
. #261v3
. #259 #268The 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 |
---|---|---|
8.0.1 | Sep 28, 2022 | |
8.0.0 | Jul 15, 2022 | |
7.0.3 | Jul 14, 2022 | |
7.0.2 | Apr 28, 2022 | |
7.0.1 | Apr 27, 2022 | |
7.0.0 | Jul 30, 2021 | |
6.1.4 | Jun 18, 2022 | |
6.1.2 | May 26, 2022 | |
6.1.1 | Apr 12, 2021 | |
6.1.0 | Apr 8, 2021 | |
6.0.0 | Dec 9, 2020 | |
5.0.1 | Jul 22, 2020 | |
5.0.0 | Jul 10, 2020 | |
4.2.3 | Jul 22, 2019 | |
4.2.2 | Jul 5, 2019 | |
4.2.1 | Jun 19, 2019 | |
4.2.0 | Jun 7, 2019 | |
4.1.0 | May 31, 2019 | |
4.0.0 | May 3, 2019 | |
3.12.4 | Feb 12, 2019 | |
3.12.3 | Nov 5, 2018 | |
3.12.2 | Nov 2, 2018 | |
3.12.1 | Oct 4, 2018 | |
3.12.0 | Oct 3, 2018 | |
3.11.7 | Sep 20, 2018 | |
3.11.6 | Aug 2, 2018 | |
3.11.5 | Jul 25, 2018 | |
3.11.4 | Jul 9, 2018 | |
3.11.3 | Jun 29, 2018 | |
3.11.2 | Jun 15, 2018 | |
3.11.1 | Jun 1, 2018 | |
3.11.0 | May 23, 2018 | |
3.10.3 | May 4, 2018 | |
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 |