简体   繁体   中英

Microsoft Push Notification Service And Windows Phone 7/8

I have few questions regarding MPNS(Microsoft Push Notification Service) For Windows Phone.

As we know there are three types of Push Notifications in windows phone

  1. Toast Notification
  2. Shell Tile Notification
  3. Raw Data Notification

  4. Can we show Toast and Tile at the same time. Mean when toast is received via MPNS and it also updates my tile count too for my app tile.

  5. Suppose my app is not launched and its not in running state or its in background. If there is some toast or tile notification is received. And server send some payload in this push. Can we get that when app launched after the push and we can get this payload within our app.

  6. What is TTL(Time To Live) time of push or can we set that within our payload.

Can we show Toast and Tile at the same time. Mean when toast is received via MPNS and it also updates my tile count too for my app tile.

You have to do two different pushes for this. It's different payloads.

Suppose my app is not launched and its not in running state or its in background. If there is some toast or tile notification is received. And server send some payload in this push. Can we get that when app launched after the push and we can get this payload within our app.

You mean save some data into for example isolated storage when the notification is received? That is not possible. Is it possible to process the push notification data in Windows Phone 7

For raw and VoIP toasts, a background agent can handle the incoming push, and you can then write data to the isolated storage. A raw/VoIP toast can also update a tile, and show a message toast at the same time, for a single push payload.

Tile and Message Toasts have by definition no agent, so no code handling the incoming data.

What is TTL(Time To Live) time of push or can we set that within our payload.

You got 30 seconds before the OS kills the agent process.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM