Questions regarding sendMessage and push notifications
C
Cory Leach
started a topic
about 8 years ago
Using the test harness I can see that I can use sendMessage to send a message to an offline player and the next time that player connects they will receive the message after authenticating.
My question though is regarding how this will behave with a push notification. If I'm simply using sendMessage and not sendMessageExt or sendMessageWithoutPush will it default to sending a push notification? If so, what will the push notification display if I'm not using sendMessageExt?
Also, if the player receives a push notification will they then still receive the message after authenticating?
Best Answer
C
Customer Support
said
over 7 years ago
Your first question is entirely dependant on how you have ScriptMessage set up in the messages screen:
You can toggle send as push to prevent a regular scriptMessage from being sent.
For your second question, we will first try to send the message through the webSocket and failing that we will send the push notification. The player should get the message via websocket when they log back in as it could contain data needed for your game to continue.
Shane
1 person has this question
1 Comment
Customer Support
said
over 7 years ago
Answer
Your first question is entirely dependant on how you have ScriptMessage set up in the messages screen:
You can toggle send as push to prevent a regular scriptMessage from being sent.
For your second question, we will first try to send the message through the webSocket and failing that we will send the push notification. The player should get the message via websocket when they log back in as it could contain data needed for your game to continue.
Cory Leach
Using the test harness I can see that I can use sendMessage to send a message to an offline player and the next time that player connects they will receive the message after authenticating.
My question though is regarding how this will behave with a push notification. If I'm simply using sendMessage and not sendMessageExt or sendMessageWithoutPush will it default to sending a push notification? If so, what will the push notification display if I'm not using sendMessageExt?
Also, if the player receives a push notification will they then still receive the message after authenticating?
Your first question is entirely dependant on how you have ScriptMessage set up in the messages screen:

You can toggle send as push to prevent a regular scriptMessage from being sent.For your second question, we will first try to send the message through the webSocket and failing that we will send the push notification. The player should get the message via websocket when they log back in as it could contain data needed for your game to continue.
Shane
1 person has this question
Customer Support
Your first question is entirely dependant on how you have ScriptMessage set up in the messages screen:

You can toggle send as push to prevent a regular scriptMessage from being sent.For your second question, we will first try to send the message through the webSocket and failing that we will send the push notification. The player should get the message via websocket when they log back in as it could contain data needed for your game to continue.
Shane
-
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