Anyway to get Push Notifications to show up while in game?
A
Andrew Stanton
started a topic
almost 8 years ago
I have my push notification code working for iOS and I am seeing them being sent. However, they are only being sent when the other person is not in the game. When in the game, and the action happens that should send a message to the opponent, the message doesn't get sent. But if that user who should receive the push notification has their phone at the home screen or if the phone is in sleep mode, it works fine.
Is there anyway to force it to show the push notification while in the game?
On a related note - is there a simple way to make it so if the user swipes/accepts the push notification, that it can take an action, such as opening the game and taking their next turn (after a "turn taken" message has been sent to them)?
Best Answer
C
Customer Support
said
almost 8 years ago
Hi Andrew ,
On the GameSparks Portal, if you navigate to "Message Configuration" (Configurator/Messages), and edit your messages you can set the "Suppress Push On Socket Send" to OFF.
This should send over both Sockets and Notification Servers.
As for your second question, unfortunately I am not sure how you would make a Push Notification take an additional action within iOS or Android.
Thanks,
Oisin
1 Comment
Customer Support
said
almost 8 years ago
Answer
Hi Andrew ,
On the GameSparks Portal, if you navigate to "Message Configuration" (Configurator/Messages), and edit your messages you can set the "Suppress Push On Socket Send" to OFF.
This should send over both Sockets and Notification Servers.
As for your second question, unfortunately I am not sure how you would make a Push Notification take an additional action within iOS or Android.
Andrew Stanton
I have my push notification code working for iOS and I am seeing them being sent. However, they are only being sent when the other person is not in the game. When in the game, and the action happens that should send a message to the opponent, the message doesn't get sent. But if that user who should receive the push notification has their phone at the home screen or if the phone is in sleep mode, it works fine.
Is there anyway to force it to show the push notification while in the game?
On a related note - is there a simple way to make it so if the user swipes/accepts the push notification, that it can take an action, such as opening the game and taking their next turn (after a "turn taken" message has been sent to them)?
Hi Andrew ,
On the GameSparks Portal, if you navigate to "Message Configuration" (Configurator/Messages), and edit your messages you can set the "Suppress Push On Socket Send" to OFF.
This should send over both Sockets and Notification Servers.
As for your second question, unfortunately I am not sure how you would make a Push Notification take an additional action within iOS or Android.
Thanks,
Oisin
Customer Support
Hi Andrew ,
On the GameSparks Portal, if you navigate to "Message Configuration" (Configurator/Messages), and edit your messages you can set the "Suppress Push On Socket Send" to OFF.
This should send over both Sockets and Notification Servers.
As for your second question, unfortunately I am not sure how you would make a Push Notification take an additional action within iOS or Android.
Thanks,
Oisin
-
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