You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using an android (Moto g5+, Android 8.10), and Quasar/Cordova.
I Have already set up location services, permissions, and enabled Bluetooth. I had the program running and finding devices but did some modifications and lost functionality. When I did the rollback, it still didn't work. I have already uninstalled the app from my mobile, and have already restarted my computer, Android Studio and Visual Studio Code. I am at a loss in what to do now.
Here is the code `connect: function(address) {
this.log("startScanSuccess(" + result.status + ")");
if (result.status === "scanStarted") {
this.log("Scanning for devices (will continue to scan until you select a device)...", "status");
}
else if (result.status === "scanResult") {
if (!this.foundDevices.some(function (device) {
return device.address === result.address;
})) {
this.log('FOUND DEVICE:');
this.log(result);
this.foundDevices.push(result);
this.addDevice(result.name, result.address);
}
}
},
requestPermissionSuccess: function (result){
if (result==true){
this.log("successfully requested permission?")
bluetoothle.isLocationEnabled(this.isLocationEnabledSuccess, this.handleError);
}else{
this.log("request permission failed");
}
},
hasPermissionResult: function(result){
if (result == false){
this.log("app does not have permission")
bluetoothle.requestPermission(this.requestPermissionSuccess, this.handleError);
}
else{
this.log("app has permition")
bluetoothle.isLocationEnabled(this.isLocationEnabledSuccess, this.handleError);
//
}
},
isLocationEnabledSuccess: function(result){
if (result==false){
this.log("locations is not enabled")
alert("please turn on location services");
bluetoothle.requestLocation(this.log("user has been requested to enable location"), this.handleError);
this.initializee();
}
else{
this.log("location is enabled aleady");
this.initializee();
}
},
startScan: function() {
I'm using an android (Moto g5+, Android 8.10), and Quasar/Cordova.
I Have already set up location services, permissions, and enabled Bluetooth. I had the program running and finding devices but did some modifications and lost functionality. When I did the rollback, it still didn't work. I have already uninstalled the app from my mobile, and have already restarted my computer, Android Studio and Visual Studio Code. I am at a loss in what to do now.
Here is the code `connect: function(address) {
},
addDevice: function(name, address) {
},
initializeSuccess: function(result) {
},
handleError: function(error) {
},
log: function(msg, level) {
},
retrieveConnectedSuccess: function(result) {
},
startScanSuccess: function(result) {
},
requestPermissionSuccess: function (result){
if (result==true){
this.log("successfully requested permission?")
bluetoothle.isLocationEnabled(this.isLocationEnabledSuccess, this.handleError);
}else{
this.log("request permission failed");
}
},
hasPermissionResult: function(result){
if (result == false){
this.log("app does not have permission")
bluetoothle.requestPermission(this.requestPermissionSuccess, this.handleError);
}
else{
this.log("app has permition")
bluetoothle.isLocationEnabled(this.isLocationEnabledSuccess, this.handleError);
//
}
},
isLocationEnabledSuccess: function(result){
if (result==false){
this.log("locations is not enabled")
alert("please turn on location services");
bluetoothle.requestLocation(this.log("user has been requested to enable location"), this.handleError);
this.initializee();
}
else{
this.log("location is enabled aleady");
this.initializee();
}
},
startScan: function() {
},
initializee: function(){
new Promise(function (resolve) {
bluetoothle.initialize(resolve, { request: true, statusReceiver: false });
},
triggbtn: function () {
this.log("button was pressed");
this.t1 = performance.now();
bluetoothle.stopScan(this.log('restarted scan'));
bluetoothle.hasPermission(this.hasPermissionResult);
},
},`
This is the log after I press the button
The text was updated successfully, but these errors were encountered: