You can take a look at the related topics below and then here is a simple demonstration: 31 Days of Windows Phone | Day #19: Push Notifications
And here is a short hint about that example:
How it Works:
For a detail diagram illustration please see How it Works in Push Notifications Overview for Windows Phone. Here is an abbreviation about it.
- Your client application running on the phone request a push notification URI from the Push client service.
- The push client service then negotiates with the Microsoft Push Notification Service (MPNS) and returns a notification URI to your client application.
- Your client application then send the URI to your cloud service.
- When your web service has information to send to your client application, it uses the URI in sending a push notification to the Microsoft Push Notification Service.
- The Microsoft Push Notification Service routes the push notification to the application running on a Windows Phone device.
Types of Push Notifications:
For a briefly introduce please see "Different Messages For Different Needs" in 31 Days of Windows Phone | Day #19: Push Notifications. Here is a combination that I've learned from both of 31 Days of Windows Phone | Day #19: Push Notifications and MSDN documents:
Toast Notifications
A toast notification is displayed at the top of the screen to notify users of an event, such as a news or weather alert. The toast displays for about 10 seconds unless the user dismisses it with a flick to the right. If the user taps the toast, the application that sent the toast notification is launched. Toast WILL NOT also update your application’s data. You still need to pass a Raw Notification to make this happen.
- Title. A boldface string that displays immediately after the application icon.
- Sub-title. A non-boldface string that displays immediately after the Title.
- Parameter. (support Windows Phone OS 7.1 and later) A parameter value that is not displayed but passed to your application if the user taps on the toast. This parameter can indicate what page the application should launch to. It can also contain name-value pairs to pass to the application. This is defined as the Param property in the XML schema.
If only a Title is set, then approximately 40 characters can be displayed before being truncated. If only a Sub-title is set, then approximately 47 characters can be displayed. If a toast is split evenly between a Title and aSub-title, then approximately 41 characters can be displayed. Any text that does not fit on the toast will be truncated.
Tile Notifications
A Tile notification can be used to update a Tile on Start, if your application is pinned to the user’s Start screen. For more information about Tile properties and how to update them, see Tiles Overview for Windows Phone. These properties on the front of a Tile can be updated using a Tile notification.
- Title. A string indicating the title of the application. The Title must fit on a single line of text and should not be wider than the actual Tile. Approximately 15 characters will fit in the title before being truncated.
- BackgroundImage. An image displayed on the front of the Tile. We recommend that you always have a background image on the front of the Tile.
- Count (also known as Badge). An integer value from 1 to 99. If the value of Count is not set or it is set to 0, the circle image and value will not display in the Tile.
- BackTitle. A string displayed at the bottom of the back of a Tile. The BackTitle must fit on a single line of text and should not be wider than the actual Tile. Approximately 15 characters will fit in the title before being truncated.
- BackBackgroundImage. An image displayed on the back of the Tile.
- BackContent. A string displayed in the body of the back of a Tile. Approximately 40 characters will fit in the Tile before being truncated.
Raw Notifications
You can use a raw notification to send information to your application. If your application is not currently running, the raw notification is discarded on the Microsoft Push Notification Service and is not delivered to the device.
Related Topics:
- Push Notifications for Windows Phone
- Push Notifications Overview for Windows Phone
- Receiving Push Notifications for Windows Phone
- Sending Push Notifications for Windows Phone
- Push Notification Service Response Codes for Windows Phone
- How to: Set up a Callback Registration Request for Windows Phone
- Setting Up an Authenticated Web Service to Send Push Notifications for Windows Phone
- How to: Send and Receive Toast Notifications for Windows Phone
- How to: Send and Receive Tile Notifications for Windows Phone
- How to: Send and Receive Raw Notifications for Windows Phone
Your post for window phone 7 are really impressive.In this post,You describe how it works? and you are describe the types of push notification such as toast,tile,raw notification.
ReplyDeleteThanks for this.
For more information please visit here whatsapp push notification windows phone