Page 2 of 2

Android Device ID ; bug

Posted: Thu Feb 13, 2014 7:39 pm
by Kateryna Grynko

Dear Addy,

Don't worry, we're working on it.


Android Device ID ; bug

Posted: Thu Feb 13, 2014 7:41 pm
by Kateryna Grynko

The point is that it works with ";" for us.


Android Device ID ; bug

Posted: Thu Feb 13, 2014 7:45 pm
by Bad Addy

I have managed to make it work, but changing how to indexOf.

if(did.indexOf(';') '-1') {
did = did.replace(';', '%3B');
console.log(did + ' changed uuid for Android');
}

This gets me over the URL ; issue, and it logs me in on Android and allows me with ios :)

thought i was about to god mad as a hatter :)


Android Device ID ; bug

Posted: Thu Feb 13, 2014 7:52 pm
by Kateryna Grynko

Addy,

Thank you very much for the update! We even couldn't reproduce the issue and glad it works!


Android Device ID ; bug

Posted: Fri Feb 14, 2014 9:28 am
by Bad Addy

That is odd, you did not find it.

My app, the first thing it does is check if the users device is registered and if so, get the user _id. It is this where I had the error. When I used REST to check if the device is registered, it sent only part of the Android device ID.

Is there a way to store the users _id on the phone, so when the app is closed and re-opened, it can collect this id back ?


Android Device ID ; bug

Posted: Fri Feb 14, 2014 2:57 pm
by Maryna Brodina

Hello! Please try to delete preif(did.indexOf(';') '-1') {
did = did.replace(';', '%3B');
console.log(did + ' changed uuid for Android');
} /pre and replace preurl: 'https://api.appery.io/rest/push/reg/'+did/pre with preurl: 'https://api.appery.io/rest/push/reg/'+encodeURIComponent(did)/pre