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
Posts: 1,533
Registered: ‎07-14-2008
My Device: Z10
Accepted Solution

Help: notification_request_events not getting any events

I'm trying to use

 

notification_request_events()

 

and have requested to receive events but my app isn't getting any events.

 

the function description says

 

"* If the application doesn't have permissions to listen to notifications, this
 * function will fail. Events are posted to the currently active channel."


 what permission do I need?

 

BlackBerry Development Advisor
Posts: 248
Registered: ‎07-14-2008
My Device: Not Specified

Re: Help: notification_request_events not getting any events

You need to add
<permission>post_notification</permission>
in your bar-descriptor. Note that notification_request_events() is only a callback for events generated by notifications that are issued by your application.
Developer
Posts: 1,533
Registered: ‎07-14-2008
My Device: Z10

Re: Help: notification_request_events not getting any events

ok.  I have the permissions already set.

 

I thought it would catch all notifications including system.