Building apps at a large company? Check out Ionic Enterprise

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
    
  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: boolean) => console.log('Is debug:', isDebug))
  .catch((error: any) => console.error(error));

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