Dirk Gissing
Posts: 0
Joined: Sat Oct 12, 2013 4:18 pm

android device id contains semicolon

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!

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

android device id contains semicolon

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/...

Dirk Gissing
Posts: 0
Joined: Sat Oct 12, 2013 4:18 pm

android device id contains semicolon

Thank you very much, it works!

Return to “Issues”