I observed that, on B4A, B4XPage_CloseRequest gets called when the user taps the system "back" button.
On B4i, this does not happen when tapping the title bar "back" button.
How do I trap the back button on iOS or better, in a cross-platform way?
The B4XPage_Disappear seems unappropriated for my use case, since I'd like to continue running if the app is momentarily sent to back.
So, what's the correct callback to handle page closing in B4i?
B4XPage_Disappear is indeed called as result of "back" button, but is it also called when the app is simply put in background with the home button, but the page is not really closed: if I open it again, the page is still there
Stopping a running Bluetooth communication that is closely related to the page that is being closed.
As a workaround, I'm using the Appear event of the underlying page to catch the closing of the previous one, but it seems convoluted to me.