I have an Activity that extends phonegap, and in a js file there is a call to navigator.app.exitApp that ends the activity. I want to capture this call on my activity to present an exit dialog.
I’m not familier with PhoneGap and JS.
How can i catch the call to exitApp?
Thank You.
Gave Up on trying. Decided to write a plugin that calls a method to exit, removed calls from js to
navigator.app.exitApp. Not sure if this qualifies as own answer, but this is my solution to the problem.