Sign In Register

How can we help you today?

Start a new topic
Answered

iOS Push notifications

Hi,


I'm having difficulties for using push notifications.

I put my push certificates in Configurator/Integrations/Apple.


Then I want to test it.

I'm asked a push Id, So I used PushRegistrationRequest in test Harness to associate a Push Id with my user.

Seems to work.


But then Whatever I use as the Push Id in the test popup, I always get this error :

Exception: Failed to deliver notification with error code 8
Delivery error code: INVALID_TOKEN

 

Where did I go wrong, and is it possible to test push notifications from test harness ?


Thanks for your help !


Best Answer

Hi Eric,


I just looked at your game and can see that the PushRegistrationRequest you sent was using the the pushId "12345", this won't work, you'll need to get a valid pushId for your device and use it in the in the pushId field of the PushRegistrationRequest in your game to register the device for push notifications. You'll need a plugin to handle the pushId generation. Once you have done this you can use the generated pushId (which is stored in the player document) in the test integration window .


Thanks,

Liam


Answer

Hi Eric,


I just looked at your game and can see that the PushRegistrationRequest you sent was using the the pushId "12345", this won't work, you'll need to get a valid pushId for your device and use it in the in the pushId field of the PushRegistrationRequest in your game to register the device for push notifications. You'll need a plugin to handle the pushId generation. Once you have done this you can use the generated pushId (which is stored in the player document) in the test integration window .


Thanks,

Liam

how to create pushid , how to add a client and server?

Login to post a comment