Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ionic framework cordova插件蓝牙初始化方法在ionic中不起作用_Ionic Framework_Bluetooth Lowenergy_Cordova Plugins_Phonegap Plugins - Fatal编程技术网

Ionic framework cordova插件蓝牙初始化方法在ionic中不起作用

Ionic framework cordova插件蓝牙初始化方法在ionic中不起作用,ionic-framework,bluetooth-lowenergy,cordova-plugins,phonegap-plugins,Ionic Framework,Bluetooth Lowenergy,Cordova Plugins,Phonegap Plugins,由于某些原因,initialize方法不起作用 constructor( public navCtrl: NavController, public platform: Platform, private toastCtrl: ToastController ) { platform.ready().then( () => { let initializeResult: object; let param

由于某些原因,initialize方法不起作用

  constructor(
    public navCtrl: NavController, 
    public platform: Platform,
    private toastCtrl: ToastController
  ) {
    platform.ready().then(
      () => {
        let initializeResult: object;
        let params: object = {
          "request": true,
          "statusReceiver": false,
          "restoreKey": "bluetoothleplugin"
        }
        console.log('Im ready3x');
        cordova.plugins.bluetoothle.initialize(initializeResult, params).then(
          (success) =>{
            this.toastInitialize('Im ready3x');
          },
          (error) =>{
            this.toastInitialize('Not ready3x');
          }
        );
        //this.toastInitialize('Im ready3x');
        let enableSuccess: object; 
        let enableError: object;
        cordova.plugins.bluetoothle.enable(enableSuccess, enableError);
        this.toastInitialize('enabled');
      }
    );

  }
可能出了什么问题?应用程序启动,但看不到祝酒词。在以前能够使用插件(ionic native ble)进行扫描的真实设备上进行测试