Search code examples
windows-phone-7push-notificationmpns

How to clear already sent notification message


I've a working notifications part in my project. And I want to give user to disable notifications in app itself. Once user checks this option, I bring tile image and title to original state. Even this part works fine. Count can be removed by sending 0, But i didn't understand how to remove already sent message, esp:

<wp:BackContent> </wp:BackContent>

I tried sending empty message but it didn't work. Any idea, how to clear this message on tile?


Solution

  • Here is the answer: Need to send "clear", if you want to clear anything. Very intuitive but not documented well.

    <wp:BackBackgroundImage Action=”Clear”></wp:BackBackgroundImage>
    
    <wp:BackTitle Action=”Clear”></wp:BackTitle>
    
    <wp:BackContent Action=”Clear”></wp:BackContent>