How to Configure Windows Phone Push Notifications
When an event of interest occurs, the server-side component can send the app a push notification. If your game is not currently in use, you can still notify the user when an event takes place. For example ‘Challenge Received’ or when someone on the user’s friends list has beaten their high score. There are three things a push notification can do:
- Display a short text message
- Play a brief sound
- Set a number in a badge on the game’s icon
Obtaining WNS Authentication details
Your app must be registered with the Windows Store to use the Windows Push Notification Service (WNS).
GameSparks requires two pieces of information to integrate with WNS, the Package Security Indentifier (SID) and a client secret.
1. First log in to the Dashboard and select your app. Then select Services:
2. On the Services page, select Live Services site found under the Windows Azure Mobile Services section:
3. On the Push notifications and Live Connect services info page, select Identifying your app:
4. Click Authenticating your service at the bottom:
5. The Authenticating your service section provides your SID and client secret.
Now, on the GameSparks side:
- Make a note of the SID and client secret and navigate to the GameSparks Portal.
- Select Configuration then Integrations from the Left Hand Navigation.
- Select the Windows Tab, then select Edit.
- Enter the SID into the field titled Windows Package SID.
- Enter the client secret into the field titled Windows Secret Key.
- Your GameSparks game is now configured to receive Windows Phone Push Notifications!
Editing Messages for Push Notifications
To edit a message:
1. Select the Edit option next to the desired message.
2. You can then toggle if you want the messages to be sent as push notifications: