Page 1 of 1

android device id contains semicolon

Posted: Thu Mar 27, 2014 6:00 pm
by Dirk Gissing

Hello,

I want users to be able to choose wether they want to receive push notifications or not. So I added a new row in the devices table called "receive". I use the update_devices service in order to do this. But the problem is that in the devices table android devices show an id with a semicolon in it.

This happens when I try to the the device:
Image

And when I remove the "null" it gives an error "device id does not exist" which is true of course because in the devices table the deviceid is prepended by a null.

How do I fix this problem? The documentation tells me I have to change the semicolon in the devices table with "%3B" but there are thousands of devices, I can't change every field manually. There has to be a way to do this automatically. Does anyone have a solution for this problem?

please advice!


android device id contains semicolon

Posted: Thu Mar 27, 2014 7:24 pm
by Nikita

Hello,

It's not necessary to change all the records in table. You can replace it in the request mapping with return value.replace(";","%3B");

This link might be helpful:
https://getsatisfaction.com/apperyio/...


android device id contains semicolon

Posted: Thu Mar 27, 2014 8:34 pm
by Dirk Gissing

Thank you very much, it works!