Control Home Buttons with Hybrid Apps

Asked 1 years ago, Updated 1 years ago, 77 views

I am currently developing a hybrid app with monaca.
I want to stop going back to the platform when the home button of the terminal is pressed.
I don't want to close the app, I want to leave it as it is.
Currently document.addEventListener('pause', function(e){,
I was able to have him take some action when the home button was pressed in , but returning to the home screen remains the same.Please tell me how to prevent me from going to the home screen.

* We support both Android and IOS.

javascript monaca cordova

2022-09-30 17:34

1 Answers

If you can't go back to the home screen when you press the home button, the application that the terminal runs will be fixed and you won't be able to switch to other applications, and the application will take over the OS.


2022-09-30 17:34

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.