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
abx
Contributor
Posts: 26
Registered: ‎10-03-2012
My Device: Playbook
My Carrier: lebara

bps_event_destroy

I use bps_event_create and bps_channel_push_event from thread 2 and it is received on main thread.

 

Do I need to call bps_event_destroy after I receive the event?

 

The docs say: This function must be called only if an event is created using bps_event_create() and the event is not pushed to BPS using bps_push_event().

 

But it doesn't mention bps_channel_push_event.  

BlackBerry Development Advisor
Posts: 38
Registered: ‎10-26-2011
My Device: BlackBerry Bold 9900
My Carrier: Rogers

Re: bps_event_destroy

You don't need to call destroy. The docs need to be updated to include both bps_push_event() and bps_channel_push_event().