cordova-plugin-core-android-extensions

Useful methods for an android cordova app

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
cordova-plugin-core-android-extensions
722.0.05 years ago8 years agoMinified + gzip package size for cordova-plugin-core-android-extensions in KB

Readme

cordova-plugin-core-android-extensions
Useful methods for an android cordova app

Installation

cordova plugin add cordova-plugin-core-android-extensions

Supported Platforms

  • Android

Methods

Every method returns a promise fulfilled with an appropriate result.
  • navigator.app.minimizeApp
  • navigator.app.resumeApp
  • navigator.app.detectApp
  • navigator.app.uninstallApp

navigator.app.minimizeApp

Shows home screen and sends the app into background

Parameters

  • moveBack: When true the app first tried to return to the previous task in current stack (Boolean)

navigator.app.resumeApp

Brings app into foreground.

navigator.app.detectApp

Detects an app availability.

Parameters

  • packageName: Target app package name

navigator.app.uninstallApp

Trigger an app uninstall dialog.

Parameters

  • packageName: Target app package name

navigator.app.startApp

Starts an app activity.

Parameters

  • packageName: Target app package name
  • componentName: Target app component name (optional)

Examples:
// open Google Maps
navigator.app.startApp("com.google.android.apps.maps")
// open device Wi-Fi settings
navigator.app.startApp("com.android.settings", "com.android.settings.wifi.WifiSettings")