Hi All,
I'm storing the device unique ID of a mobile device for security purpose, I was using the UUID from the common plugin. Since it is specific to app installation the UUID is coming as different value if we uninstall and reinstall the same application for IOS alone. For Android it is not the case, can anyone suggest me a way to get unique ID of device in IOS.
Thanks in advance,.
Regards,
Arun Kumar
Hi assif_tiger,
Thanks for your response,
I have used this cordova plugin to make the uuid of iPhone device none changeable even after the re installation of the application and it works for me.
"url": "https://github.com/Paldom/UniqueDeviceID.git"
Note I'm using this only for iOS not for android.
Arunkumar T B wrote:
Maybe this component can help you out.
Get Device Information
https://is.gd/LbDnqf
CM_Techy wrote:
Hi CM_Techy,
The plugin that you have mentioned provides the UUID of the device which will be changing when we reinstall the application. I need a solution so that even reinstalling the application the UUID of the device should not be changed.
Hi,
the UDID is a unique ID in the world for an Apple. In fact, when you need to register a device in the Apple provisioning profile to allow testing on Apple applications, it is the UDID you give, as it is a unique value. But there is another unique ID in the world for all devices, both apple, and android, like any other device.
Source: https://www.imore.com/how-find-your-iphones-serial-number-udid-or-other-information
Cheers
Hi Miguel Verdasca,
The solution that you have provided is to fetch the UDID from the device not programmatically. I need to to fetch the UUID of the device in runtime and it should not be changing whenever I reinstall the application.
Yes, that's right the UUID gets change whenever you install/re-install the app on the same device as well.
You can follow the below approach:- Fetch the UUID from keyChain- If found then refer it accordingly... of not then Fetch the UUID from the device & store it on keyChain- Now the next time you fetch even after re-installation of app .. you will get the last UUID you stored on KeyChain.You can use the OS Forge component for keyChain:https://www.outsystems.com/forge/component-overview/1550/key-store-pluginNote:
Hi assif_tiger ,
Thanks for your valuable response,
I have tried with the key store plugin that you have mentioned. After the first installation I set this key with value as given in the below screenshot.
After I reinstalled the same app in my device and this time I directly clicked on the getvalue button, But I received the attached screen shot.
But previously after setting the key with value I was able to get the value using the client action getvalue in the same installation.
My Question is
Is that I need do any configuration change while generating the application?
Hi
Can you post the snap of action where you fetch the same from Keychain..
Want to see what to pass as a key to fetch n where you are fetching it
And make sure you're using a new generated build on device...coz you added a forge plugin.
Happy to know,That's even a good approach.