Hi, I'm very new to hybrid app development using Kendo Mobile. Here's what I'm trying to do...
1. pass username/password encrypted token to API server and get api_key
2. Store api_key on mobile device somewhere and use that key to authenticate every http request to the API server.
Now, where should I store the api_key?
I'm thinking of storing that api_key in LocalStorage (https://github.com/kendo-labs/kendo-plugins/blob/master/Framework/kendo.data.localstoragedatasource.js). But how does this work when converted as Android or IOS app?
Will it still use localStorage? or convert to some other datastore that I'm not sure of in native world?
Any recommendation? or best practices?
*ps: api_key should be persistent even when closing the native app, so that user don't need to login again everytime they open the app.
1. pass username/password encrypted token to API server and get api_key
2. Store api_key on mobile device somewhere and use that key to authenticate every http request to the API server.
Now, where should I store the api_key?
I'm thinking of storing that api_key in LocalStorage (https://github.com/kendo-labs/kendo-plugins/blob/master/Framework/kendo.data.localstoragedatasource.js). But how does this work when converted as Android or IOS app?
Will it still use localStorage? or convert to some other datastore that I'm not sure of in native world?
Any recommendation? or best practices?
*ps: api_key should be persistent even when closing the native app, so that user don't need to login again everytime they open the app.