UniqueDeviceID icon indicating copy to clipboard operation
UniqueDeviceID copied to clipboard

Not getting an UUID in iOS

Open Sobiru opened this issue 8 years ago • 6 comments

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?

Sobiru avatar Sep 13 '15 09:09 Sobiru

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" />

bau720123 avatar Sep 13 '15 09:09 bau720123

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.

Sobiru avatar Sep 14 '15 04:09 Sobiru

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

bau720123 avatar Sep 14 '15 05:09 bau720123

+1

kostia-official avatar Jan 12 '16 12:01 kostia-official

+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)

h3nr1ke avatar May 11 '16 18:05 h3nr1ke

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

beck24 avatar Sep 11 '17 19:09 beck24