FMX – How to stop the service when swipe to close the app from recent list

  

The app is using TJService.JavaClass._GetSTART_NOT_STICKY.
The service will stop if the user exits the app.
However, if the user swipes to remove the app from the Recent list, the service is still running.
I need to stop the service when the user swipes away the app.
How can the app detect this and stop the service?

Comments are closed.