Current behavior:
Calling Diagnostic.requestBluetoothAuthorization(), the promise is rejecting with errorException occurred: Value null at 0 of type org.json.JSONObject$1 cannot be converted to JSONArray on Android platform.
Expected behavior:
System asking for Bluetooth permission successfully
Steps to reproduce:
Just call the Diagnostic.requestBluetoothAuthorization() on Android
I'm submitting a ...
Current behavior: Calling
Diagnostic.requestBluetoothAuthorization()
, the promise is rejecting with errorException occurred: Value null at 0 of type org.json.JSONObject$1 cannot be converted to JSONArray
on Android platform.Expected behavior: System asking for Bluetooth permission successfully
Steps to reproduce: Just call the
Diagnostic.requestBluetoothAuthorization()
on AndroidRelated code: https://github.com/dpa99c/cordova-diagnostic-plugin/commit/8f41fe7d7f3fa3f58c55d4c32ad02fcb19fa2b3a#diff-504fb4a76cceae499fd94d8dc5db6830c1893f7de73e3861a02af2edca11beecR237
Other information: Using the follow code, the plugin works:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):