Capacitor plugin to force quit app on Ios
This plugin may not be allowed upon apple review.
method | info | platform |
---|---|---|
killApp() |
force quit app every where call it | ios |
import {Plugins} from '@capacitor/core';
const { ExitAppIosPlugin } = Plugins;
//
//
if (this.platform.is('android')) {
navigator['app'].exitApp();
} else {
ExitAppIosPlugin.killApp().then();
}
//
//
sudo gem install cocoapods
(once a time)ionic start my-cap-app --capacitor
cd my-cap-app
mkdir www && touch www/index.html
npx cap add ios
npm i capacitor-exit-app-ios
npx cap sync ios
(always do sync after a plugin install)npx cap open ios
- sign your app at xcode (general tab)
https://github.com/tienmanh94hbk/capacitor-exit-app-ios
Follow me @Facebook
MIT