Show pending push notification count in Windows Phone - c#

I am creating an WebView app i.e it contains only WebBrowser control which opens some enterprise mobile web app. I am using Urban Airship for push notifications.
Now I want to show the pending tile/toast notification count as badge on tile as well as on lock screen. How do I perform that? Is there any event which occurs when notification is pushed, if yes how can I use to maintain the count? Can I use background task? I am thinking to clear the badge when app is launched.
I am totally new in push notifications for Windows Phone. I searched a lot but didn't get expected results.
Get tile notifications count Windows phone
Count unreaded Number of missed call and message in windows phone

Here is a good sample of tile notification in msdn. You don't even need a background agent for this task, it will be done by the system. There is also a toast notification sample.

Related

Can't we use raw push notifications to trigger backgroundTask without adding LockScreen in Windows Phone

Is there any way to start BackgroundTask when the raw push notification is received. I don't want to add lock screen app feature. Please help me.

How to get my notification to contionuosly alert my user windows 8.1 device or c#

I have successfully been able to send and receive notifications between my windows 8.1 application and my server using WNS. The only problem is when my toast notification comes through to my device it shows for about 10 seconds then disappears. This is no good for me as if my user was not with their device they would miss the notification completely. So what I want to know is where I fix this problem?
1.Is there a setting in the device that I can change to have the notification continue for more than 10 seconds. Or to make sure the notification keeps working till the user has touched the notification or device.
2. Or do I need to specify in the server that the same notification needs to be sent every say 10 minutes till the user has client app side has acknowledged that the notification has been seen?
What is the best way to do this?
Stuart's answer is correct. A Toast notification is not meant to be continuously visible, but a Live Tile notification can be. I think you would be best off by throwing a toast notification to immediately notify the customer and then have a live tile that shows the information as well.
Throwing a notification every 10 minutes is incredibly annoying. I would delete your app in a heartbeat if you did that to my phone/machine.

Toast is not shown while application is launching in windows phone

I am developing a Windows Phone 8 application, and I've implemented a background agent which does some work and also updates my application's Tile and shows a toast notification to the user.
It works, except when I am launching the application (more specifically when control is in the Application_Launching event) in which case the Toast notification is not shown, but the Tile still gets updated. Has anyone ran into this before?
A toast will not be displayed if the current foreground application is the caller of the Show method. Toast notification only display in the running background agent or some of the work are finish.

WP7 Reminder with NavigationUri when phone is blocked issue

When Reminder created with set path in NavigationUri param have such issue:
when phone is blocked (under locked screen) and reminder shown, it's impossible to navigate to the app using Tap on title or content of the reminder message.
Is it possible to solve such problem, or it's ussual behaviour for reminder and lock screen?
It's the normal behavior for Windows Phone 7, the user needs to unlock the phone to interact with notifications. There's nothing you can do about it.
There's a few obvious reasons for this behavior. Imagine that the user has put a pin-code on the lockscreen. Someone picking up the phone would be able to bypass the pin-code by tapping on a notification. Or even if there's no code, I may trigger something involuntarily if the phone is inside my pocket when a notification is displayed.

Getting the number of push notifications received?

I've been learning about the push notifications on Windows Phone 7, and I was searching for a way to know how many Toast notifications a certain app got.
For example: Between 5 PM and 7 PM, my app would receive 7 Toast notifications when the user opens the app. It would display somewhere that it got those 7 notifications (and if possible the time and content of them).
Is this possible, and if so, how?
I've searched for some tutorials on this but all I find is the send and receive tutorials.
If wp7 receive toast notification and user doesnt tap on it, toast notification just disappear.
So answer on your question is : NOT POSSIBLE.
Idea: you can create something like "confirmation request". When user tap on notification, you can send info to server. When user doesnt tap on notification I recommend use TILE notification...you can display number of unconfirmed notifications...and when user run app you can download all unconfirmed notifications's data.

Categories

Resources