You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/07/22 08:58:27 UTC

[GitHub] [cordova-android] CodeWithOz commented on issue #1106: "backbutton" event no longer seems to work

CodeWithOz commented on issue #1106:
URL: https://github.com/apache/cordova-android/issues/1106#issuecomment-1192345495

   For anyone still encountering this problem, check if you're using the [Google Maps plugin](https://github.com/mapsplugin/cordova-plugin-googlemaps/) because that plugin overrides the `backbutton` event handler, so [the order of when you set your event listener matters](https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/2701). More so, the plugin only records the first handler you set, so if you use multiple handlers for the `backbutton` event and you're using that plugin then only the first listener will work. You will need custom code to handle this second problem, either in your own project or by forking the plugin and making necessary modifications. If you need an example of how this can be done, [here are the code snippets](https://github.com/CodeWithOz/cordova-plugin-googlemaps/commit/1e100cee4ec4a037698bf76fac8a4f3a5db69d8b) I used to solve the problem in my own fork.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org