Page 1 of 1
How do you create a local storage variable?
Posted: Wed Apr 16, 2014 3:52 pm
by Tanmay Mehta
I'm trying to retrieve the deviceID and token to register my app to the database. I've been following the tutorials and I got very confused when it told me to define the local storage variable. All I want to do is retrieve my device ID and token so how could I do that?
How do you create a local storage variable?
Posted: Wed Apr 16, 2014 4:23 pm
by Maryna Brodina
Hello!
[quote:]define the local storage variable[/quote]means create local storage variable on the upper right side in mapping section as shown on screenshot
How do you create a local storage variable?
Posted: Thu Apr 17, 2014 5:31 pm
by Tanmay Mehta
But where is the mapping section?
How do you create a local storage variable?
Posted: Thu Apr 17, 2014 5:34 pm
by Maryna Brodina
How do you create a local storage variable?
Posted: Thu Apr 17, 2014 10:06 pm
by Tanmay Mehta
Thank You!
That did help, but when I created the pushNotificationDeviceID variable in the local storage, I couldn't find the deviceID. In one of the tutorials it told me to create a Device Ready event to retrieve the deviceID variable. I did create the event but I still couldn't retrieve the device ID. Can you please tell me how to properly retrieve the deviceID?
How do you create a local storage variable?
Posted: Fri Apr 18, 2014 2:20 am
by Illya Stepanov
Hi - Please follow the steps described here: http://docs.appery.io/documentation/b...
Note: That this will work only if tested on the device. After the app is installed and DB Devices collection is updated.