Skip to content
Discussion options

You must be logged in to vote

You can use the @capacitor/app plugin and implement a BackButtonListener using this code (docs here)

const handle: PluginListenerHandle = App.addListener('backButton', listenerFunc);

The reason this was changed was because for v3 was that we pulled out all of the plugins so they would be imported dynamically rather than bundling the plugins in with the Capacitor core runtime

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mindstorm38
Comment options

Answer selected by mindstorm38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants