hi
i have this code that i use to get the device id
i have 2 apps on the same phone
the id's i get are different in each app
it was ok until (i think) i had to change signature key in one app
how do i make sure to get the same id on both apps?
it is critical
i can't change now the mechanism or the id form the first app as it is active with users
so i need to make sure on the new app to get the same id, or a replacement that will be used such as phone number or anything else
i use the device id to share data between the apps on my server so if they're no match it wont work
it did work and as said when changed the signature key it changed
now even if i try to use the old key the id is different
tested on android 13
sdk 31
i think on previous versions like 9 it did work (but it worked like charm on android 13 until the key change)
please help...
thanks
i have this code that i use to get the device id
B4X:
Sub GetDeviceID() As String
Dim DeviceID As String=""
Dim p As Phone
Try
DeviceID = P.GetSettings("android_id").ToUpperCase
Log($"DeviceID: ${DeviceID}"$)
Catch
Log(LastException)
DeviceID = ""
End Try
Return DeviceID
End Sub
i have 2 apps on the same phone
the id's i get are different in each app
it was ok until (i think) i had to change signature key in one app
how do i make sure to get the same id on both apps?
it is critical
i can't change now the mechanism or the id form the first app as it is active with users
so i need to make sure on the new app to get the same id, or a replacement that will be used such as phone number or anything else
i use the device id to share data between the apps on my server so if they're no match it wont work
it did work and as said when changed the signature key it changed
now even if i try to use the old key the id is different
tested on android 13
sdk 31
i think on previous versions like 9 it did work (but it worked like charm on android 13 until the key change)
please help...
thanks