-
12 Dec 2011 3:09 PM #1
Unique id working on iPhone and Android
Unique id working on iPhone and Android
Hi! I've read that in next version of iOS will not disponible GUID for identify device.
I'm creating a PhoneGap for Android and iPhone using Sencha Touch 2.0 and I'd like to find a solution for generate and unique ID that allows to identify device and for know (recalculate) same GUID also after delete and re-install of my app.
If GUID calculate is 12345678
must be same also if I delete app and on same device I install it another time
Thansk
-
13 Dec 2011 7:20 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
We do have a new class, Ext.data.UuidGenerator that you can use but does PhoneGap give you anything that is unique to the device? WebKit doesn't but since PhoneGap gives you more access it may.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
13 Dec 2011 8:06 AM #3
Thanks for your reply!
I don't know this:
Can I use this solution in my project?? (PhoneGap + SenchaTouch 2.0 on iPhone and Android)?? Or not??Ext.data.UuidGenerator
Can't I use this: Ext.data.UuidGenerator??but does PhoneGap give you anything that is unique to the device?
Thanks
-
13 Dec 2011 8:08 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
Ext.data.UuidGenerator has been apart of ST2 since PR1. The problem is that there isn't anything unique to the device, if you uninstall an app, how will you be able to reliably create the exact same id? You can save to local storage but what happens when someone clears local storage?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
13 Dec 2011 8:36 AM #5
It this, I don't need Ext.data.UuidGenerator
What about a GUID generated using MAC??
But nobody of you have this need??? Identify (always) a device for logs/feedback/lastupdate info.... etc??
Why lose all info about device if use delete (and re-install) app?
Thanks
-
13 Dec 2011 8:37 AM #6Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
Can you get it using phonegap?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
13 Dec 2011 9:15 AM #7
I don't know thisCan you get it using phonegap?
I'd like to find a solution that works on Android and iPhone (using PhoneGap or Sencha Touch)
-
13 Dec 2011 10:22 AM #8
I'm sure there are ways to do this, but it is a PhoneGap issue, not a Sencha issue.
Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
-
14 Dec 2011 1:22 AM #9
So right way is use PG??
And what do you think to create ad info on localstore with MAC_GUIDGeneratedLocally
using Sencha Touch
and keep saved this info also when app is deleted?? (Android and iPhone)
I'm also searching righr solution
-
14 Dec 2011 6:15 AM #10Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
Using the MAC to create an id would be good as the MAC should be unique to every device. I would some means of encrypting it as you don't just want to use the MAC address in plain text. You should save it to local storage so that the client knows about it. At app startup, get that id from local storage and use it, if it doesn't exist, then that's when you would generate a new one.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote