我正在尝试将 ibeacon 功能集成到 Ionic 2 应用程序中。
\n\n我正在使用https://ionicframework.com/docs/native/ibeacon/ 插件。
\n\n按照文档中提到的步骤进行操作。
\n\n但是在Android设备上运行该应用程序时,出现错误,
\n\n\n\n\n“导航失败:没有 IBeacon 提供商!”
\n
请提出任何修复建议。
\n\n谢谢。
\n\n信标提供者类:
\n\nimport { Injectable } from \'@angular/core\';\nimport { Platform, Events } from \'ionic-angular\';\nimport { IBeacon } from \'@ionic-native/ibeacon\';\n\n\n\n/*\n Generated class for the BeaconProvider provider.\n// \n See https://angular.io/docs/ts/latest/guide/dependency-injection.html\n for more info on providers and Angular 2 DI.\n*/\n@Injectable()\nexport class BeaconProvider {\n\n delegate: any;\n region: any;\n\n constructor(public platform: Platform, …
Run Code Online (Sandbox Code Playgroud)