Google play is available and advertising id (with SDK 33) is not OK, I get: 000000000000000000000
Wait For (GetAdvertisingId) Complete (Id As String)
with SDK 30 is the number OK.
Best regards
p4ppc
if i may,
i also was struggling with that topic and found, i think, a better solution
advertising id is "problematic" as not all have google play
some do block this id
and it requires you to work with it
my solution is much simpler and works for me:
on first run create a file with an GUID or just take the device id as shown in the following code sample
then on each run check if the file exists and read it
if you use device id not GUID no need for file
now you have an id to work with
this id will change every time you install fresh but stay on updates
i chose the GUID as it provides me more features
you can combine them...
this is used in my registration and licensing engine for quite a long time now
i use a OEM like license so if the user changes the device or remove and reinstall it is my choice to grant free or charge
the main thing is that i can identify the user and device
Dim DEviceID As String=""
Dim p As Phone
Try
DEviceID = P.GetSettings("android_id").ToUpperCase
Log($"DeviceID: ${DEviceID}"$)
Catch
Log(LastException)
DEviceID = ""
End Try
Log(DEviceID)
Return DeviceID
hope i did some help here