@wisdomgarden/capacitor-exit-app-ios
TypeScript icon, indicating that this package has built-in type declarations

1.2.2-6 • Public • Published

capacitor-exit-app-ios

Capacitor plugin to force quit app on Ios

Notice

This plugin may not be allowed upon apple review.

Method

method info platform
killApp() force quit app every where call it ios

Usage

import {Plugins} from '@capacitor/core';
const { ExitAppIosPlugin } = Plugins;

//
//
    if (this.platform.is('android')) {
      navigator['app'].exitApp();
    } else {
      ExitAppIosPlugin.killApp().then();
    }
//
//

iOS setup

  • 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)

Github

https://github.com/tienmanh94hbk/capacitor-exit-app-ios

Cheers 🍻

Follow me @Facebook

License

MIT

Package Sidebar

Install

npm i @wisdomgarden/capacitor-exit-app-ios

Weekly Downloads

0

Version

1.2.2-6

License

MIT

Unpacked Size

31.2 kB

Total Files

14

Last publish

Collaborators

  • zihning
  • wg-kevinlin
  • chenzhiyuan01
  • yaoxiangyi
  • dengzhirong93
  • peixin
  • chenyunjie1