Getting error 114 with Parse.com registering Android device for push notifications

I am getting an error from parse.com when I try to register an Android token for push notifications.

This is my request:

{

"deviceType": "android",

"deviceToken": "MY DEVICE ANDROID TOKEN",

"installationId": "acef4da2-98e8-484f-9688-cbb1c6a27c8e",

"channels": [""]

}

and I am getting this answer:

{

"code": 114,

"error": "deviceToken could not be set for deviceType android"

}

Does anyone know why I am getting this error?

+3


source to share


3 answers


I got the error too and solved it.

After registering your Android device, you must add pushType.



Refer to: http://upbeat-sound.tistory.com/24

+6


source


From the push notifications guide in analysis docs:

"deviceToken: An Apple-generated token used for iOS devices, or a token used by GCM to track the registration ID (read-only)."



the field is read-only and you are trying to write it.

0


source


You can just use

    ParseInstallation.getCurrentInstallation().save();

      

This will automatically save your device information as an installation target.

0


source







All Articles