Answered by:
Windows Phone notifications force device uri update

Question
-
I have a question about Push Notifications. As far as I know, when the App starts, it checks if exists a push channel and, if not, it creates a new channel. Also there is an event which starts when the uri is changed. And this Uri gets expired after 30 days.
But what I would like to know is: I want to send these notifications even if the user does not have the app running (let's suppose for a long time, more than 30 days).
-
Is posible to detect the Uri changed if the App is not running?
-
Could I force somehow device uri update?
Edit: I have read this information:
Each time your app starts, you should pass the URI from your push channel to the cloud service that sends out the push notifications. It is also recommended that you pass the device ID to your cloud service so that the cloud service can track to which devices the URIs are assigned. If a URI changes, then the cloud service can replace the old URI for that device ID. Windows Phone does not provide a framework to do this, since in most scenarios apps and cloud services already have their own protocols that they use to communicate with each other.
From here
According to the text, my cloud service could send the new URI to the device, instead of updating the uri from the client? If so, do you know how could I do this?
- Edited by Programmer23 Friday, February 14, 2014 8:32 AM New information
Friday, February 14, 2014 8:10 AM -
Answers
-
You cannot.
The channel URIs are specific to a device and application. You misread the article. It is stating that if the channel URI changes the app still reads and pushes it up to your cloud service you have written, and the cloud service can use the device ID to remove the old channel URI.
Jeff Sanders (MSFT)
@jsandersrocks - Windows Store Developer Solutions @WSDevSol
Getting Started With Windows Azure Mobile Services development? Click here
Getting Started With Windows Phone or Store app development? Click here
My Team Blog: Windows Store & Phone Developer Solutions
My Blog: Http Client Protocol Issues (and other fun stuff I support)- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Friday, February 14, 2014 1:59 PM
- Marked as answer by Programmer23 Friday, February 14, 2014 4:30 PM
Friday, February 14, 2014 1:59 PMModerator
All replies
-
You cannot.
The channel URIs are specific to a device and application. You misread the article. It is stating that if the channel URI changes the app still reads and pushes it up to your cloud service you have written, and the cloud service can use the device ID to remove the old channel URI.
Jeff Sanders (MSFT)
@jsandersrocks - Windows Store Developer Solutions @WSDevSol
Getting Started With Windows Azure Mobile Services development? Click here
Getting Started With Windows Phone or Store app development? Click here
My Team Blog: Windows Store & Phone Developer Solutions
My Blog: Http Client Protocol Issues (and other fun stuff I support)- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Friday, February 14, 2014 1:59 PM
- Marked as answer by Programmer23 Friday, February 14, 2014 4:30 PM
Friday, February 14, 2014 1:59 PMModerator -
Now I understand... Thank youFriday, February 14, 2014 4:29 PM