Hi,
I am using Ble plugin in my project. In the code, I use the following method:
ble.isEnabled().then((connect) => {}, (disconnect) => {});
When I try (New)Ionic View App and Ionic DevApp on Android platform, both of them works pretty well. Just like the official document mentioned, this method returns a promise that resolves if Bluetooth is enabled, and rejects if disabled.
However, when I try (New)Ionic View App on IOS platform, it always return rejects even the Bluetooth is on. But, the Ionic DevApp is still working correctly. I am not sure what’s the problem with (New) Ionic View App. Hope can get help for your guys.
Thank you
The following is my environment
Android Platform Version: 7.1.1
IOS Platform Version: 11.3
New Ionic View Version: 0e67f51
Ionic DevApp Version: fd7dc5
@ionic/cli-utils : 1.18.0
ionic (Ionic CLI) : 3.18.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.1.2
Cordova Platforms : none
Ionic Framework : ionic-angular 3.9.2
System:
Node : v8.6.0
npm : 5.3.0
OS : Windows 10
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro