10-13-2011 01:35 PM
Application events are not firing over multiple pages. I noted that in BBWW 2.0, this was a known issue (for onExit, at least). However, this is true, even using the specified workaround, and in the latest version of BBWW (for smartphones). On each page, I set a handler with something like:
blackberry.app.event.onExit(_onExit); blackberry.app.event.onBackground(_onBackground); blackberry.app.event.onForeground(_onForeground);
...and in each case the events will fire on the first page. The onExit handler will not fire on other pages (all using the same initializer code there, all defining the same functions). The code is in a js file included in the head section of each of my pages.
Additionally, the onBackground never fires, but the onForeground always fires.