App close event
#19010
Replies: 1 comment 1 reply
-
Thanks for the question. Having an event on app closing is generally not possible, or at best not reliable because the system may close the app forcibly. You may be able to know that the app has been suspended by using the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current behavior
There is no event to know when the app has been closed on Android. This page looks like it once tried to explain it, but as with all other documentation about Uno I have seen so far, it is wrong or outdated (can't distinguish the two as a new user).
Expected behavior
I need to know when the user is no longer using my app so it can disconnect connections and be able to terminate. Now, my app keeps running in the background, keeping the Bluetooth connection that it uses open.
How to reproduce it (as minimally and precisely as possible)
The debugging will never end.
If it does, then continue to connect to a Bluetooth device and regularly poll data from it in a timer. Maybe it's that what keeps it alive. Anyway, I would stop this and disconnect if I knew that the user has gone away.
Affected platforms
Android
IDE
Visual Studio 2022
IDE version
17.12.3
Relevant plugins
None
Anything else we need to know?
No response
Beta Was this translation helpful? Give feedback.
All reactions