Need help upgrading to Ionic Framework 4.0? Get assistance with our Enterprise Migration Services EXPLORE NOW

Is Debug

Improve this doc

Detect if the app is running in debug mode or not. Debug mode is when the app is built and installed locally via xcode / eclipse / the cordova cli etc, compared to release mode when the app was downloaded from the app / play store via an end user.

Repo: https://github.com/mattlewis92/cordova-plugin-is-debug

Installation

  1. Install the Cordova and Ionic Native plugins:
    $ ionic cordova plugin add cordova-plugin-is-debug
    $ npm install --save @ionic-native/is-debug@4
    
  2. Add this plugin to your app's module

Supported platforms

Usage

import { IsDebug } from '@ionic-native/is-debug';

constructor(private isDebug: IsDebug) { }

...

this.isDebug.getIsDebug()
  .then(isDebug => console.log('Is debug:', isDebug))
  .catch(err => console.error(err));

Instance Members

getIsDebug()

Determine if an app was installed via xcode / eclipse / the ionic CLI etc

Returns: Promise<boolean> Returns a promise that resolves with true if the app was installed via xcode / eclipse / the ionic CLI etc. It will resolve to false if the app was downloaded from the app / play store by the end user.

API

Native

General