Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nothing happens on all methods #733

Open
matirodriguez opened this issue Aug 24, 2022 · 5 comments
Open

Nothing happens on all methods #733

matirodriguez opened this issue Aug 24, 2022 · 5 comments

Comments

@matirodriguez
Copy link

Im using

"@awesome-cordova-plugins/bluetooth-le": "^5.44.0",
"cordova-plugin-bluetoothle": "^6.7.0",
"@ionic/angular": "^6.1.9",

Whenever I call a method (requestPermissions, initialize, getAdapterInfo, startScan) nothing happens,
It doesnt go neither to the success nor the error, Also no console errors, also no Android errors,

Did anyone experienced this? Thanks

@draudrau
Copy link

draudrau commented Sep 9, 2022

For me it's almost the same thing.
sequence of plugin calls :

  • isInitialized -> { isInitialized: false }
  • initialize -> { status: 'enabled' }
  • hasPermission -> { hasPermission: false }
  • requestPermission -> { requestPermission: false }
    Android doesn't prompt for permission

@draudrau
Copy link

draudrau commented Sep 9, 2022

My bad !
New methods to use : hasPermissionBtScan and requestPermissionBtScan
It works well :-)

@Nickholas
Copy link

Nickholas commented Sep 10, 2022

I cant see that new methods despite i have installed the 6.7.0 version of cordova-plugin-bluetoothle:

Property 'hasPermissionBtScan' does not exist on type 'BluetoothLE'

In my package.json i have the last versions of the plugins:

  • "@awesome-cordova-plugins/bluetooth-le": "^5.45.0",
  • "@angular/core": "^14.0.0",
  • "@ionic/angular": "^6.1.9",
  • "cordova-plugin-bluetoothle": "^6.7.0",

Any ideas about what i am doing wrong? I am using capacitor.

@Nickholas
Copy link

Well, i have found that i have the last version of the plugin called "cordova-plugin-bluetoothle", BUT it is NOT updated on the package "@awesome-cordova-plugins/bluetooth-le". So, i cant use that functions on my capacitor proyect.

Is there another way to update it?

Thanks in advance

@kabaehr
Copy link
Contributor

kabaehr commented Oct 6, 2022

Hey, I have the same issue with using "@awesome-cordova-plugins/bluetooth-le". There is a PR already fixing it, but it is not merged yet. danielsogl/awesome-cordova-plugins#4320 I also mention my workaround there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants