Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
raffi
Posts: 154
Registered: ‎06-23-2012
My Device: Z10 & Z30

Posting a second notification after clearing the first one doesn't work

When I post a notification using notify(), all works well. But when I clear it using clearEffectsForAll(), I am unable to post any further notifications again until I either pop and re-push the page I was on (re-creates the Notification object) or quit the app.


I see the same thing happen with the notifications sample app.

 

What's going on here? Is this a bug?

Developer
raffi
Posts: 154
Registered: ‎06-23-2012
My Device: Z10 & Z30

Re: Posting a second notification after clearing the first one doesn't work

For reference, given that I have not yet received any responses, I have created an issue in the tracker for this. See here: https://www.blackberry.com/jira/browse/BBTEN-601

As a temporary workaround, I am going to have to find a way to destroy and re-create the notification, which may prove to be challenging in QML. I have to be careful not to introduce a memory leak because of this.