Is it possible to process the push notification data in Windows Phone 7

假装没事ソ 提交于 2019-12-25 08:17:16

问题


i have a question for my student project.

I am currently using push notification an the Windows Phone 7 and wanted to ask if it is possible - like as it is in Android - to process the delivered data in background, creating a wakelock or something.

Here the scenerio how it works in Android: 1. I send a notification to the device (more precise to the C2DM Server, but that doesn't matters now). 2. The App receives my notification while it is closed, shows a tile on the screens and saves the data in a database so i can work with them later.

Is it possible to store the data received by a push notification in a database/isolated storage in Windows Phone 7 while the Application is not running?


回答1:


This capability isn't exposed directly by the API at the moment. However, there is nothing stopping you calling back to your web service after the user taps your toast notification to query for any data that needs to be passed along.




回答2:


As Mick said. That's not possible at the moment.

Tile and toast notifications are intended to be used provide updated information to the user or prompt the user that there is more information availabel.

If this then prompts the user to open the app, that should be the trigger for the app to get any new information from the server. You can then save/store this information as appropriate.




回答3:


Yes, It's possible You can check out this link How to: Send a Push Notification for Windows Phone on MSDN



来源:https://stackoverflow.com/questions/4311662/is-it-possible-to-process-the-push-notification-data-in-windows-phone-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!