When trying to register the channel for notifications, you may notice that callback handler ‘ChannelUriUpdated’ is never invoked. If that happens register the callback ‘ExceptionOccurred’. This will give you a chance to receive the exception, which cases the channel to fails.
Unfortunately exceptions are still not very useful, because they do not say too much.
For example, I experienced ‘NotificationChannelOpenException’. It is more confusing the fact that this exception is not thrown in examples, which are provided by Microsoft. If you use exactly the same code, the channel registration will just fail after Open() is called.
So, the something has to be different ?!
The solution is in WMAppManifest.xml file. This file is a part of the WP7 project:
Open that file and set the attribute Publisher to anything.
Posted
May 23 2010, 03:40 PM
by
Damir Dobric