-
-
Notifications
You must be signed in to change notification settings - Fork 46
Ability to check the status of the requested permissions. #42
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
Comments
Hi @racekarl,
TypeScript
|
I am using the permissionName - The permission you are requesting. |
Hi,
I am not sure what this workaround is for? Is it for camera crashing after multiple photos?
Thanks
… On Oct 2, 2017, at 9:29 PM, nmongiya ***@***.***> wrote:
I am using the
https://github.com/NathanaelA/nativescript-permissions <https://github.com/NathanaelA/nativescript-permissions>
This is a workaround, It has a function to check permission and return true and false.
permissions.hasPermission(permissionName);
permissionName - The permission you are requesting.
returns Boolean - true or false
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#42 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AQNdwjuqBLFCafC-2xvF-gr6V_LWl6X2ks5soY3xgaJpZM4NtEx6>.
|
It would be ideal if nativescript-camera provided a means to check the permission. Projects can implement their own logic to track permissions but this doesn't take into account that users can revoke permissions outside of the app. What if the user removes the app permission in settings and then re-opens the app? It becomes a confusing mess. Nativescript-permissions is also a great plugin but it doesn't support ios. |
Hi guys, The fix was implemented by @surdu in pull request #73 and released in version 3.2.0 of the plugin. |
Why does the requestPermissions method return void and not the result of the request? How are we supposed to handle the case where the user denies permission to use the camera? I can see in the code for iOS you catch the permission denied case and log it, while in Android the result is never even checked. In both cases nothing is returned to the calling code, which does not make sense to me. Am I missing something?
The text was updated successfully, but these errors were encountered: