Page 1 of 1

Not getting device name and getting different uuid on every instance in iPhone ios

Posted: Tue Apr 01, 2014 10:03 am
by ishani modi

Hi,

I followed this tutorial http://docs.phonegap.com/en/1.0.0/pho...

I am getting device name as undefined, though I have given the name of the device,
uuid of device comes different on every instance

Thanks,
Ishani


Not getting device name and getting different uuid on every instance in iPhone ios

Posted: Tue Apr 01, 2014 10:35 am
by Kateryna Grynko

Hi Ishani,

This method is deprecated. Check this solution please:
http://stackoverflow.com/questions/14...


Not getting device name and getting different uuid on every instance in iPhone ios

Posted: Tue Apr 01, 2014 11:16 am
by ishani modi

Hi,

Please can you help for how to get the UDID of my iPhone (Device).?

Thanks in advance.
Ishani


Not getting device name and getting different uuid on every instance in iPhone ios

Posted: Tue Apr 01, 2014 1:52 pm
by Kateryna Grynko

Ishani,

Take a look at here please:
http://docs.appery.io/documentation/b...


Not getting device name and getting different uuid on every instance in iPhone ios

Posted: Tue Apr 01, 2014 2:37 pm
by ishani modi

Hi Katya,

Thanks for the link, but I don't need device Id(UDID) for PushNotification, but want to perform some action after I get device Id(UDID)

I want the value of uniqueDeviceIdentifier as shown in the screenshot below
Image

Please help..!!

Thanks in advance,
Ishani


Not getting device name and getting different uuid on every instance in iPhone ios

Posted: Tue Apr 01, 2014 8:10 pm
by Maryna Brodina

Hello!

If you have some native code, you can use it to create PhoneGap plugin and use in app http://cordova.apache.org/docs/en/3.3...


Not getting device name and getting different uuid on every instance in iPhone ios

Posted: Wed Apr 02, 2014 7:39 am
by ishani modi

Hello

I have edited the code in the below screenshot and I am getting udid while debugging in xcode

Image

I have also added code#import "UIDevice+IdentifierAddition.h"/code with the help of which I am getting uniqueDeviceIdentifier, but I want this udid in html in alert.
I have written codealert(device.udid)/code to get in html, Is it correct ?
Thanks,
Ishani


Not getting device name and getting different uuid on every instance in iPhone ios

Posted: Wed Apr 02, 2014 10:55 am
by ishani modi

Hello
I have solved this. I got device UDID by changing in device.js file also
I am mentioning in the screenshot below
Image

Thanks,
Ishani


Not getting device name and getting different uuid on every instance in iPhone ios

Posted: Wed Apr 02, 2014 11:16 am
by Nikita

Hello,

We are glad to know it!