Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

Problem with diagnostic

$
0
0

@neumotngayem wrote:

I try to get the the Bluetooth state with diagnostic in Ionic 4.12.0, but it gona someproblem here

    this.diagnostic.getBluetoothState()
      .then((state) => {
        if (state == this.diagnostic.bluetoothState.POWERED_ON){
          console.log("Okay");
        } else {
          console.log("Not Okay");
        }
      });

I already import with ngx append import {Diagnostic} from “@ionic-native/diagnostic/ngx”;
But when test on my android phone it show the error that Object(…) is not a function in that line this.diagnostic.getBluetoothState()

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>