Step #1 - Phone app tries to find an existing channel |
There is a good chance that if your WP application is using MPN, a persistent channel already exists for your application. If it does exist, trying to create a new one will fail and throw an exception (NotificationChannelOpenException); therefore, it is better to start by trying to find one before attempting to create a new one. |
Step #2 – Create a new channel |
If you didn’t find an existing channel, it is time to create a new channel. |
Step #3 – Send the channel URI to your cloud service |
Send your channel (just a URI) to your backend cloud service the push notification channel URI that you received (see steps 1 and 2)
Find a channel |
Your WP app already had an open channel. No need to create one. Just use the one that was found |
Create a channel |
Your WP app already DID NOT HAVE an open channel. You need to create one |
|
|
|
Step #4 – Register to receive tile and toast MPN messages |
You need to register your WP application to get tile and toast messages. This registration creates a bind between WP shell and your application, binding your application tile to receive WP notification messages as well as toast messages. |
Steps #5 – Handle incoming push notification messages |
Your WP app now needs to do something with the notification it received. |
|
|