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
C
Customer Support
said
almost 7 years ago
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 .
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
S
Sergey Awdiyenko
said
over 6 years ago
how to create pushid, how to add a client and server?
Eric Moncada
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 :
Where did I go wrong, and is it possible to test push notifications from test harness ?
Thanks for your help !
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
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
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
Sergey Awdiyenko
how to create pushid , how to add a client and server?
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics