Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Android Device ID ; bug

I thought this had been sorted in an update in Jan 14.

But still I am having issues in having the the device ID matched ?

What is the best solution for this ?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Android Device ID ; bug

Hello! I'm sorry, could you clarify/remind what issue do you mean?

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Android Device ID ; bug

Due to Android Device ID having a ';' in-between two sets of numbers

When I check if the device has opened the app before, or not, it checks the number against the one in the database, but it only goes up to the ; and so does not find it ?

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Android Device ID ; bug

I have tried:

encodeURIComponent

and

encodeURI

neither seem to work :(

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Android Device ID ; bug

We checked and it works. Do you replace ; with %3B?

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Android Device ID ; bug

no, where do I do this ?

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Android Device ID ; bug

This is what I am trying now

if(did.indexOf(";") == "-1") {
} else {
did = did.replace(";", "%3B");
}

did is the localStorage var of the device ID.

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Android Device ID ; bug

This is not working, it must be giving an error, but i dont know what it is, and its not showing up on weinre :(

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Android Device ID ; bug

device ready, does not mean you get the device ID. I have my startscreen on device ready, and the device id = null.

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Android Device ID ; bug

Right!!!

I have tried it many many many different ways, and it does not work!!!!

I really need assistance because I have done everything that I can think of.

Here is the code:

Image

This is from weinre:
Image
Image

What am I doing wrong :(

Return to “Issues”