iOS Question GetIMEI for IPad

Yvon Steinthal

Active Member
Licensed User
Hello,

I am using the following code to get the IMEI from the device found in this forum:

B4X:
Sub GetIMEI As String
    ' get device unique identifier
    Dim device As NativeObject
    device = device.Initialize("UIDevice").RunMethod("currentDevice", Null)
    Dim name As String = device.GetField("identifierForVendor").AsString
    Return name
End Sub

As much as i need a unique identifier, it seems that my iPhone's IMEI doesn't change while my iPad's keep changing...
Any idea why? I need some sort of unique identifier...

Y.
 

Yvon Steinthal

Active Member
Licensed User
Nevermind, i just read further in the forum.
I will generate and save a unique key for each user.
It seems to be the overall consensus to be able to handle unique identifier on iOS.

Y.
 
Upvote 0
Top