mpns

Can I send parameters in push notifications to toast (Windows Phone)?

穿精又带淫゛_ 提交于 2020-01-13 02:30:41
问题 I have a case in my app where I need to send a push notification to a user device when the application is offline and appears as a toast notification. I need when the user clicks on the toast message to navigate to a specific page in my application depending on the message. I know that this is available in toast notifications but can I send parameters from my server to the toast to determine the page? 回答1: Of course you can. The XML of the toast notification you send from your server looks

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

wp8:Handle Toast notification when application is in backgroung

时光总嘲笑我的痴心妄想 提交于 2019-12-23 04:28:55
问题 While my app is running I can receive toast notification,on ShellToastNotificationReceived(object sender, NotificationEventArgs e) event handler as keys in e.Collection. If my app is not running and a toast notification arrives, a toast is displayed but how i can i handle this notification? I mean which event is fire when my application is not running and notification arrives. I know background agent but its not fulfill my requirement Thanks. 回答1: Windows Phone platform is responsible to

Localize notification payload

北城以北 提交于 2019-12-18 09:11:09
问题 I am currently developing a localized application which uses push notifications. I would like to know if it is possible to localize the strings that are sent in the notification message, in the Text element for toast notification and in the Title element for a tile notification. I would like to use the localized resource strings I have created to localize the rest of the application. I have seen that it is possible to localize the application title by using the '@' character in the main tile

Windows Phone 8 notifications and background tasks

一笑奈何 提交于 2019-12-18 06:19:39
问题 I have searched the official forums and documentation and all other places, but haven't been able to find a concrete answer. Q. In Windows Phone 8, is it possible for an application to respond to a Push Notification, and perform a task, while it is in the background? As far as I can understand, for Toast and Tile Notifications , when the app is not in the foreground, there are no hooks at all for it to be able to respond to the incoming message. I think "raw notifications" are the correct

Distinct normal launch with push notification Windows Phone 7

元气小坏坏 提交于 2019-12-14 02:25:37
问题 hi I have been developing an App for Windows Phone 7 with daily update when start and push notification enable. so far I use 2 types of push notification at the same time ( toast and tile ). since my App need a long time update. so I will have to distinct between normal start ( will update ) and start from push notification ( no update will be allowed ). Now I can distinct for the toast with query string. but when start from tile I can't because I donno how to get the count from the tile of

Toast notification disappears after 10 sec in windows phone 8

你离开我真会死。 提交于 2019-12-13 07:47:35
问题 Toast notification disappears after 10 sec,if user does not tap on that and I am not able to get How to handle this, if user misses the notification. Requirement is that toast should not disappear untill user taps on it. One way of doing this is to send toast and tile notification at the same time.so that if user misses the toast notification then he may find it on tile.But not able to get how to do it using push sharp.So please suggest any solution for the following : How to decide duration

Push Notification inside ScheduledAgent in Windows Phone 8

只谈情不闲聊 提交于 2019-12-11 11:46:23
问题 I would like to achieve a similar task, in which I want to re-establish my push notification channel using background agent. Is it possible? I am using the following code inside my ScheduledAgent, but its not working. If I cannot access the channel APIs, is there any alternative to that? How have popular apps like whats-app and others been able to achieve this? Please help me. Can you advise me an alternative? How can I update my user that there is something new for him from my server without

sending a tile and toast notification through at the same time?

放肆的年华 提交于 2019-12-11 10:28:00
问题 i have this desktop application that i created through a MSDN tutorial (i cant find the link, otherwise i would have linked it). what it does , it lets you put in the channel URL needed to connect to the WIndows Phone Emulator, and through the application you can send live tile updates, : here is the code for both the emulator (listener), and the service sending the data. : MainApp - Emultor : public MainPage() { HttpNotificationChannel pushChannel; string channelName = "TileSampleChannel";

Iconic LiveTile push notification via php results in PayloadFormatError

烈酒焚心 提交于 2019-12-11 06:09:32
问题 Final EDIT working code (Huge thanks to Claus for taking time and solving it): class WindowsPhonePushDelay { const Immediate=0; const In450Sec=10; const In900Sec=20; } class WindowsPhonePushNotification { private $notif_url = ''; function WindowsPhonePushNotification($notif_url) { $this->notif_url = $notif_url; } public function send_raw($msg,$message_id=NULL, $delay = WindowsPhonePushDelay::Immediate) { return $this->send_push(NULL,$delay+3,$message_id, $msg); } public function send_normal