Paldom / UniqueDeviceID

PhoneGap / Cordova unique device id (UUID) plugin for Android, iOS and Windows Phone 8. Remains the same after app uninstall.
MIT License
169 stars 96 forks source link

Not getting an UUID in iOS #15

Open Sobiru opened 8 years ago

Sobiru commented 8 years ago

I'm not getting UUID inside iOS. The success callback function does get called but the parameter uuid is empty.

I might add It works well on Android.

Is there something i am doing wrong?

bau720123 commented 8 years ago

hi @Sobiru what iOS version are you using ? you use cordova or phonegap or PGB (build.phonegap.com) ? if you are using PGB,try to use this in your config.xml

<gap:plugin name="hu.dpal.phonegap.plugins.uniquedeviceid" source="pgb" version="1.2.0" />
Sobiru commented 8 years ago

Hi @bau720123 , thank you for the response. I'm developing through ionic framework and the device I tested the plugin with had iOS version 7.1. I added the plugin through CLI ionic plugin add https://github.com/Paldom/UniqueDeviceID.git and it installs the plugin for my iOS platform. I tried debugging the plugin through xCode, the line NSString *uuid = [UICKeyChainStore stringForKey:@"uuid"] outputs an empty "" even on the first use.

bau720123 commented 8 years ago

hi @Sobiru the ios system is a "emulated" environment or true device ? if "emulated",try use true device

I have never add this plugin from ionic method,only in phonegap or cordova

kostia-official commented 8 years ago

+1

h3nr1ke commented 8 years ago

+1 working in an perfect way on Android, but getting an error trying when I call window.plugins.uniqueDeviceID.get

testing on cordova (using Oracle MAF tools)

beck24 commented 6 years ago

This is working for some devices but not for others, inconsistency makes it unusable unfortunately