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,638
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido
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?

 

Retired
Posts: 249
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.
Highlighted
Developer
Posts: 1,638
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

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.