DEV Community

loading...

Discussion on: Mobile iOS, Android App with VueJS in 5 minutes ! Really ! #EN

Collapse
tr3nt profile image
Ezhaym N

Thanks!

I made an app using this tutorial to create and publish the apk.
I'd like to make a small contribution.

The app store rejected my app after 2 days online, because Capacitor doesn't have "close app" behavior on hardware back button.

/** Adding hardware back button behavior */
import { Plugins } from '@capacitor/core'
const { App } = Plugins

App.addListener("backButton", () => {
    App.exitApp()
})
Enter fullscreen mode Exit fullscreen mode

If you want to make a Capacitor app, remember this!

Collapse
simerca profile image
Ayrton Author

Does the tutorial is simple to follow .?
Thanks for your contributing !

Forem Open with the Forem app