ASHLEY. Please, would it be possible to implement the application quit control/back button API for CocoonJS in the CocoonJS plugin?
Control over what the back button does is quite important for a consistent user experience in Android.
From Ludei's blog (http://blog.ludei.com/):
"Application ?quit? control
If the function returns true, it means the app should finish and if it returns false, it means it should not finish and that the developer takes control of the finalization. Whenever a developer wants to finish the application, there is a function called
This feature is specially useful in Android (in iOS for example none of the functions will work)."
It would be nice to have the condition:
"On Back Button Pressed"
- so we cab specify what it does.
and the action:
Control over this would give us massive boost in terms of how professional our apps look compared to the stock Android "Are you sure you want to exit?" dialogue box.