I am developing an application which is Push Notification Enabled. I have a web service which sends me notification. I wrote the following code in order to implement the push notification in my WP7 app.
Created a Uri from the below code
channel = new HttpNotificationChannel("Diary"); channel.ShellToastNotificationReceived += channel_ShellToastNotificationReceived; channel.ChannelUriUpdated += channel_ChannelUriUpdated; channel.ErrorOccurred += channel_ErrorOccurred; channel.Open(); channel.BindToShellToast(); channel.BindToShellTile();
By calling the above method i got an uri http://dm2.notify.live.net/throttledthirdparty/01.00/AQHhBKglq-YiSoltOFnZwEWxAgAAAAADBwAAAAQUZm52OkJCMjg1QTg1QkZDMkUxREQFBlVTU0MwMQ
This is the Uri i should give to my web service team.
But each time when i open my application my channel uri is getting changed. Why this is dynamic?. Please make me direct whether am i going in right direction or should i register somewhere my application to get the uri?