So, Ive made Windows Phone app that contains rss-feeds. I would now like to add the possibility for toasts to popup when a stream is updated. Ive read up on how to use Toasts to notify the user, but how can i make my rss-reader periodically poll the rss-feeds for the latests news when the app is suspended in the background. Example code would be highly appriciated!
Check the "Background Agent Sample" Windows Phone Code Samples to see how you can create a periodic background agent, that will allow you to pool the rss feed(s) and show a toast notification to the user!
Related
So I want to know how a quickreply toast can be sent to the right person and when you click on it, it goes to the specific person.
Example 1:
Person A texts me, I pull down on the interactive notification and type my response and it gets processed by the background process. How does the applications know that my response goes to Person A. is there an attribute in the XML of the toast that can be a variable, like the phone number?
Example 2:
Person A posts a picture on my facebook, I click on the notification and it takes me to the page on facebook. Again is there an XML variable with a URL of it or something?
You can download this Microsoft Windows UWP sample, where you can see what code they use to manage notifications.
I think that you need Toast notifications:
Toast notifications are small pop ups that appear on the screen for few seconds. They convey messages and can be customized to even play different sounds. New to Windows 10 are actionable toasts where a user has a choice to interact with the notifications by use of a button, for example.
I am working on windows development & I am displaying the items on the emulator by using a web service.
Now I want to send a toast notification when an item added to the service. Already I worked with push notifications. But It’s generating push channel URL when app is initialized.
I don’t want to use this channel URL. So I tried Background Agent & Shell Toast to send the notification. Its working fine for static data. How can I add dynamic data to back ground agent which is coming from web service?
One more thing is, there are two things like PeriodicTask & ResourceIntensiveTask. How can I use this to send a toast notification by using Background Agent?
You can refer to this Tutorial From Nokia
http://developer.nokia.com/community/wiki/How_to_create_simple_Background_Agent_in_Windows_Phone
and this from CodeProject
http://www.codeproject.com/Articles/656654/Windows-Phone-Background-Agent-Part-Periodic-T
I am developing an app in windows phone where I enter the score of the match and the other windows phone users who has the same app should get that score as a toast notification(if any other better way suggest me).
I also want to push the data to this app users from a rss feed. This feed gets refreshed data for every 1 or 2 mins.
IS this possible to implement this in windows phone ?
If you only want to send the notification of the match score to certain users then you could use Push Notifications.
If everyone needs to get the notification then you would just use a BackgroundAgent. The Background agent will run approximately every 30 minutes (if you need it to be more accurate then you're back to Push Notifications). When the agent runs you could just check to see if there are any new match scores since the time the agent last ran and then pop the toast if there are.
You should also use the Background Agent for checking your RSS feed.
I have created an app that triggers video at particular time similar to alarm, but the problem I am facing is that when I am out of application & have set the timings the video doesn't show up(i.e. similar to alarm I should get notification out side my app). Please help me out with the same. Would be very grateful for any helpful suggestion.
When an application is not running, you cannot predict what time its background process will execute, so there is no way that you can set an alarm with any degree of precision smaller than perhaps an hour. The only way to have timing close to accurate would be with a push notification from a server. Even then, the notification you receive will not be able to open and play video on its own. You could create a push/toast notification that originates at a server, sends the user a toast, the user taps it, and that opens the app to play the video. You can't do it without user intervention.
See this link for an overview, including the constraints on background agents: http://msdn.microsoft.com/en-us/library/hh202942(v=VS.92).aspx
You cannot open an app and play a video from a background agent. You can show a toast notification that would allow the user to open the app. You can use a Scheduled Agent or PeriodicTask.You can then use the ShellToast to show a toast notification so the user can open the app. Once the app is open you can start the video.
I have a toast notification system that is working on WP7. When I send a notification, all registered devices receive the toast notification.
But, If someone uninstall the application, I will continue to try to send to the registered device (in fact, I will ask Microsoft service to send to the unavailable device).
Is it possible to detect if someone uninstall the app, then I can remove it from my list of device to send.
Or maybe can Ms services tell me if the app as unsuscribe to the toast notification ?
My list of registered device grows infinitely ....
Thanks in advance for any Help,
Best regards
You can't detect if the user deleted the app, but can always check the subscription status return code when you send a notification!
Check here for the return codes, specifically where the SubscriptionStatus != Active