You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.
I asked Rob if he knew whether this was possible in native, and he mentioned "If you don’t have a BB::Application instance, you can listen for bps navigator events";
I've got a BPS event loop working at last but for some reason the only navigator event that ever gets as far as the test extension's handler is NAVIGATOR_DEVICE_LOCK_STATE (absolutely nothing else)
I notice that most other navigator events are handled by WW internal extensions so maybe it's killing them higher up (naughty if true)
Anyway, we never get a NAVIGATOR_EXIT (or anything else useful) from what I can see which is disappointing
Still a BPS event loop is useful in other cases so not a complete waste of time
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I wish there was an onExit() method for BB10 that let applications detect when the application is about to exit:
https://developer.blackberry.com/html5/apis/blackberry.app.event.html#.onExit
I asked Rob if he knew whether this was possible in native, and he mentioned "If you don’t have a BB::Application instance, you can listen for bps navigator events";
https://developer.blackberry.com/native/reference/bb10/com.qnx.doc.bps.lib_ref/com.qnx.doc.bps.lib_ref/topic/navigator_8h_1bps_navigator_events.html
This would require setting up an event loop, like this:
https://developer.blackberry.com/native/reference/bb10/com.qnx.doc.bps.lib_ref/com.qnx.doc.bps.lib_ref/topic/overview.html
However - I don't think this shows how to intercept the event shutting down, only detect the actual event.
The text was updated successfully, but these errors were encountered: