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

BLUETOOTH_CONNECT + BLUETOOTH_SCAN missing for Android +10 #109

Open
FractalMind opened this issue Jul 9, 2022 · 4 comments
Open

BLUETOOTH_CONNECT + BLUETOOTH_SCAN missing for Android +10 #109

FractalMind opened this issue Jul 9, 2022 · 4 comments

Comments

@FractalMind
Copy link

  BLUETOOTH_CONNECT: 'android.permission.BLUETOOTH_CONNECT',
  BLUETOOTH_SCAN: 'android.permission.BLUETOOTH_SCAN',

Are missing in the android-permission package and should be added as soon as possible!

@hug0b
Copy link
Contributor

hug0b commented Jul 27, 2022

Should be solved by #103 and #110

@rigstechnology
Copy link

rigstechnology commented Aug 15, 2022

When use variable: this.androidPermissions.PERMISSION.BLUETOOTH_SCAN response is undefined

Code:

`import { AndroidPermissions } from '@awesome-cordova-plugins/android-permissions/ngx';

constructor(private androidPermissions: AndroidPermissions){}
`

Ionic version: 6.20.1
capacitor: 4

@NeilCresswell
Copy link
Contributor

NeilCresswell commented Sep 3, 2022

@rigstechnology: The error you're reporting is not from this Cordova plugin but from the Ionic TypeScript wrapper you're using, which as of now hasn't been updated for 11 months, so doesn't yet include the Bluetooth permissions that were recently added to this Cordova plugin.

Have submitted a PR for the Ionic project to add all of the missing Bluetooth permissions, along with some other permissions too. From looking at the PR list, I don't think that the Ionic TypeScript wrapper package is frequently maintained. Thus it may possibly be a while before you may see the NGX package accepting that permission. I'd therefore perhaps consider adding a // @ts-ignore comment just above the line that throws the error and see if that works for you. Basically telling TypeScript to ignore that the entry is not defined.

Here's a link to the PR: danielsogl/awesome-cordova-plugins#4295

This is in a different project and isn't maintained by the same folks.

@NeilCresswell
Copy link
Contributor

@rigstechnology FYI Ionic have merged in the changes to @awesome-cordova-plugins/android-permissions, so just updating your plugins will resolve the issue.

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