dpa99c / cordova-diagnostic-plugin

Cordova/Phonegap plugin to manage device settings
538 stars 361 forks source link

getBluetoothAuthorizationStatus wrong example #485

Open si458 opened 1 year ago

si458 commented 1 year ago

Documentation issue

you list getBluetoothAuthorizationStatuses but it doesnt appear anywhere in the javascript files?

the example for getBluetoothAuthorizationStatus shows using getBluetoothAuthorizationStatuses ?

infacto commented 1 year ago

I guess you are using the awesome-cordova-plugins wrapper? Or Ionic Native or Capacitor? I'm facing the same issue.

The method getBluetoothAuthorizationStatuses (plural) exists. Not testet on JavaScript. But I see this method on runtime using DevTools. Just type in console cordova.plugins.diagnostic.getBluetoothAuthorizationStatuses.

The awesome-cordova-plugins only includes the getBluetoothAuthorizationStatus (singular). See code

I wanted to create an issue there. But I see you already did: https://github.com/danielsogl/awesome-cordova-plugins/issues/4432

I think this issue here can be closed?

si458 commented 1 year ago

Hi Yes sorry I should of puts edits in, I discovered the code and then changed the title and issue but forgot to comment about I'm using the typescript add on and the issue was in fact there

but the example for getBluetoothAuthorizationStatus in your readme is still wrong tho haha