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

Diagnostic.permissionStatus not correct for iOS #872

Closed
tcigrand opened this issue Dec 12, 2016 · 2 comments
Closed

Diagnostic.permissionStatus not correct for iOS #872

tcigrand opened this issue Dec 12, 2016 · 2 comments
Assignees
Labels

Comments

@tcigrand
Copy link

iOS should be

Diagnostic.permissionStatus = {
        "NOT_REQUESTED": "not_determined", // App has not yet requested this permission
        "DENIED": "denied", // User denied access to this permission
        "RESTRICTED": "restricted", // Permission is unavailable and user cannot enable it.  For example, when parental controls are in effect for the current user.
        "GRANTED": "authorized", //  User granted access to this permission
        "GRANTED_WHEN_IN_USE": "authorized_when_in_use" //  User granted access use location permission only when app is in use
    };

taken from https://github.com/driftyco/ionic-native/blob/853f42538395fc177de3678261b1910522fbec6d/src/plugins/diagnostic.ts#L66-L73

@ihadeed
Copy link
Collaborator

ihadeed commented Dec 15, 2016

Yeah you're right. Thanks for pointing this out.

@ihadeed ihadeed self-assigned this Dec 15, 2016
@ihadeed ihadeed added the bug label Dec 15, 2016
@ihadeed
Copy link
Collaborator

ihadeed commented Dec 15, 2016

I removed the values from that property and added @CordovaProperty decorator, which will get the value of the constant in runtime (from the actual plugin).

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

No branches or pull requests

2 participants