New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@wisdomgarden/capacitor-exit-app-ios

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wisdomgarden/capacitor-exit-app-ios

exit app on ios

1.2.2-6
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
3
Weekly downloads
 
Created
Source

capacitor-exit-app-ios

Capacitor plugin to force quit app on Ios

Notice

This plugin may not be allowed upon apple review.

Method

methodinfoplatform
killApp() force quit app every where call itios

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

Keywords

capacitor

FAQs

Package last updated on 10 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts