Search docs/
Getting StartedPlugins


Checks whether device hardware features are enabled or available to the app, e.g. camera, GPS, wifi

Stuck on a Cordova issue?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Contact Us Today!


ionic cordova plugin add cordova.plugins.diagnosticnpm install @ionic-native/diagnosticnpm install cordova.plugins.diagnosticnpm install @ionic-native/diagnosticionic cap sync
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us

Supported Platforms

  • Android
  • iOS
  • Windows


Using React?

See here.

import { Diagnostic } from '@ionic-native/diagnostic/ngx';

constructor(private diagnostic: Diagnostic) { }


let successCallback = (isAvailable) => { console.log('Is available? ' + isAvailable); }
let errorCallback = (e) => console.error(e);


this.diagnostic.isBluetoothAvailable().then(successCallback, errorCallback);

  .then((state) => {
    if (state == this.diagnostic.bluetoothState.POWERED_ON){
      // do something
    } else {
      // do something else
  }).catch(e => console.error(e));