Replacement for Cordova device.uuid?

3,972 views
Skip to first unread message

Peter Olds

unread,
Mar 22, 2013, 9:28:04 PM3/22/13
to phon...@googlegroups.com
In response to the Apple announcement that they will no longer accept applications that use the UUID: https://developer.apple.com/news/index.php?id=3212013a#top

Are there any replacements that we can use to uniquely identify a specific device?

park2

unread,
Mar 23, 2013, 11:42:24 AM3/23/13
to phon...@googlegroups.com
+ 1 on this.......

Giacomo Balli

unread,
Mar 23, 2013, 7:44:17 PM3/23/13
to phon...@googlegroups.com
did you look at the link you posted??

Peter Olds

unread,
Mar 23, 2013, 7:51:56 PM3/23/13
to phon...@googlegroups.com
Yes, obviously. My question was posted here in the PhoneGap group for a reason. My question is not what alternatives should we use as Apple has already given suggestions. My question is seeing that (at least the documentation doesn't suggest as much) PhoneGap does not currently grant API access to fetch the Vendor or Advertising ID, what alternatives does PhoneGap recommend.

Shazron

unread,
Mar 23, 2013, 11:59:26 PM3/23/13
to phonegap
Normally I would say we could adopt [UIDevice identifierForVendor] but that is iOS 6 only, but we still have to support iOS 5. The stuff we are doing already is what Apple recommends, when they set it for deprecation earlier.

You would think identifierForVendor is semi reliable -- it is not according to the Sep 24 2012 (yellow highlighted) update to this blog post:
.. which would be the same behaviour as our device.uuid solution if your customer ever only installs one app from you (which in most cases is true).

The advertisingIdentifier is similar to what the UDID is from before - but if you erase the device, it changes (rare) - but you can only use it for serving ads.

The keychain method shown below will survive app deletes, but not device erase:

You could also get the MAC address, and hash it with a known salt to obfuscate the MAC address if privacy is a concern I suppose. This would always generate the same value for the device.

I will be bringing this up to the dev mailing list to see if we want to change our device.uuid approach.


--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Peter Olds

unread,
Mar 24, 2013, 12:04:42 AM3/24/13
to phon...@googlegroups.com
What is a recommended solution to extract a Mac Address using PhoneGap?


You received this message because you are subscribed to a topic in the Google Groups "phonegap" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phonegap/n2lA0Brpcas/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to phonegap+u...@googlegroups.com.

Shazron

unread,
Mar 24, 2013, 12:13:29 AM3/24/13
to phonegap
1. Create a plugin: http://docs.phonegap.com/en/2.5.0/guide_plugin-development_index.md.html#Plugin%20Development%20Guide

Note that one of my concerns for using the MAC address (even hashed) for device.uuid is it is the UDID problem all over again, privacy is removed. I'm not sure if Apple is blacklisting its use either or won't do so in the future.
Message has been deleted

jcesarmobile

unread,
Apr 8, 2013, 5:39:52 AM4/8/13
to phon...@googlegroups.com
I created the plugin for getting the MAC address using the code from the stack overflow thread.

http://goo.gl/hjuYF

I called it "NetworkInterfacesPlugin" because it returns an array with different network interface objects, with the interface name, mac address and IP.
That's because I think on iPhones it have 2 network interfaces, one for wifi and another for 3G (I can't test)

jcesarmobile

unread,
Apr 26, 2013, 2:47:38 AM4/26/13
to phon...@googlegroups.com
It seems that my plugin doesn't work if connected to a cellular network or wifi is off (or airplane mode)
I've created a new plugin that returns the wifi mac address even if it is off

http://goo.gl/olnMX
Reply all
Reply to author
Forward
0 new messages