Giter Club home page Giter Club logo

Comments (4)

hug0b avatar hug0b commented on June 30, 2024

Should be solved by #103 and #110

from cordova-plugin-android-permissions.

rigstechnology avatar rigstechnology commented on June 30, 2024

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

from cordova-plugin-android-permissions.

NeilCresswell avatar NeilCresswell commented on June 30, 2024

@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.

from cordova-plugin-android-permissions.

NeilCresswell avatar NeilCresswell commented on June 30, 2024

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

from cordova-plugin-android-permissions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.