You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com
Is it possible to identify a device? I need an unique device id for my app to identify a device over multiple apps.
Thanks
Shai Almog
unread,
Jan 8, 2013, 2:19:59 PM1/8/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com
There is a UDID getter in Display but it isn't guaranteed on all devices. Preferences.get("DeviceId__$", (long)-1);
Should return a unique value while running on a device as long as you don't disable device registration. However, if registration failed this will return -1.
ST.RE
unread,
Jan 21, 2013, 3:31:05 PM1/21/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com
Hi Shai,
i tried three different things:
Display.getInstance().getMsisdn(); => is null on my iPhone (i don't know the result on Android)
Display.getInstance().getUdid(); => is a device id on my iPhone but null on an Android Device
Preferences.get("DeviceId__$", (long)-1); => is null on my iPhone (i don't know the result on Android). I don't disabled the device registration (where can i do that!?)
What options do i have for a working device id detection?
Thanks
Mikhail Zemlyanukha
unread,
Jan 21, 2013, 4:15:40 PM1/21/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com
Why just don't use UDID when MSISDN is empty?
By the way, on Android devices without cellular network MSISDN may be
empty too. As far as I know, on Android devices there is no regular
(legal API) way to find unique ID.
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com
I checked and it turns out we only keep our device id with pro users (for push support). I looked into fixing this for all users but its a bit tricky to do right now. Feel free to file an RFE on me and I will try to create something more robust.
Mikhail Zemlyanukha
unread,
Jan 22, 2013, 6:32:06 AM1/22/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com
Do you generate device id on server? Looks like the only possible solution...
Shai Almog
unread,
Jan 22, 2013, 1:17:04 PM1/22/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message