I believe native ble is broken and the screen doesn’t update from any variables within observables, even though they are obviously available as seen with console.log(this.variable)
Search for other recent posts on the problem (“ble” will find them), there are at least two workarounds.
I’m attempting to use a native plugin for the first time, the BLE plugin, and when I use the BLE.startScanWithOptions(…) method, my Angular UI doesn’t update with data generated within the code which executes each time a new device is reported.
For example, I’ve taken the basic tabs project and added the BLE plugin. In the example as written, myvariable will not be updated in the UI in realtime, but with adding zone.run() will cause it to update in realtime.
What am I missing that then require…
Hello, I’m having trouble showing two beacons BLE credentials within an array. If I capture the beacons credentials in a string var they display one after the other. If I try to push the credentials into an array and ngFor diplay them, they do not show.
This code updates the screen:
data: string;
scanBLE() {
this.services = this.ble.scan([], 20);
this.services.subscribe(
data => {
this.data = JSON.stringify(data);
this.applicationRef.tick();
},
…
1 Like