c# - PUSH not showing when App is open -


When the application stops, my application receives push notifications, but when the app is running, I can not find anything . This is the same code I have used in any previous application, out of any problem, it was on Windows 8 and the new apps are running on Windows Phone 8.1 devices.

I used it when creating the original app. If you have an app open, I have a line that says, to get the information, add it.

If 8.1 update has done something for push notifications, it would be nice to know. Anything else will be appreciated.

  HTTP Notification Channel Push Channel; String channel name = "pushchannel"; Push Channel = HttpNotificationChannel.Find (channelName); // push notification if (push channel == empty) {pushchannel = new HTTP notification channel (channel name); Before attempting to open a channel, register for all events before registering. Pushchannel.ChannelUriUpdated + = New Event Handler & lt; Notification Channel URIAntAgds & gt; (Pushchannel_Hannellaueri Update); Pushchannel.ErrorOccurred + = New Event Handler & lt; Notification ChannelErierAirEventErgies & gt; (PushChannel_Errorcharded); // Register for this notification only if you need to receive notifications when your application is turned on. Pushchannel.ShellToastNotificationReceived + = New Event Handler & lt; NotificationEventArgs & gt; (Received Pushchannel Cehltost notification); Pushchannel.Open (); // tie this new channel to toast event pushchannel.BindToShellToast (); } And ... Zero PushChannel_ShellToastNotificationReivedived (Object Sender, NotificationEventArgs e) {string relativeUri = string.Empty; // Pars the information that was part of the message. Foreign currency (E. Collection.CSS string key) {if (string, compressed (key, "WP: Ultimate", System Globalization, Silver Infographic Invoire Culture, System Globalization, Compression Option. Ignore Seas) == 0 ) {RelativeUri = e .Collection [key]; }}}}  

Rob Caplan:

not toast The app is likely to appear when in the foreground. The app is expected to show its own UI, if necessary (your snippet shows nothing) This is an event receiving shaltoost notification: This toast gets a toast notification instead of being displayed. Can you confirm that if the toast is expected then does the Shalistost Notification be obtained? it must be. Can you confirm that he or she is registered in the debugger (or not)? See: msdn.microsoft.com/en-us/library/windows/apps/ ...

me:

8.1 Before the update, when an open app gets a push Is toast, still I have done some tests, and it is enough to make sure that the "PushChannelSellest Notification Rexide" event is still being removed, but the toast is not showing up, I think it means It is that I need to handle it separately. If you want to change it in an answer, then I can give it a balance.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -