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

[barcode-scanner][v2] bug: Unhandled variant prompt-with-rationale in type PermissionState #979

Closed
daniel-mader opened this issue Feb 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working platform: android Android specific issues plugin: barcode-scanner

Comments

@daniel-mader
Copy link

When running checkPermissions() from @tauri-apps/plugin-barcode-scanner (version 2.0.0-alpha.4) on an Android phone, I receive "prompt-with-rationale" instead one of the variants of PermissionState = "granted" | "denied" | "prompt". How should I handle it? Same way as the regular "prompt"?

@daniel-mader daniel-mader changed the title [barcode-scanner] bug: Unhandled variant prompt-with-rationale in type PermissionState [barcode-scanner][v2] bug: Unhandled variant prompt-with-rationale in type PermissionState Feb 22, 2024
@FabianLars FabianLars added the bug Something isn't working label Feb 23, 2024
@FabianLars FabianLars moved this to Backlog in 2.0 Stable Aug 7, 2024
@lucasfernog lucasfernog self-assigned this Aug 27, 2024
lucasfernog added a commit to tauri-apps/tauri that referenced this issue Aug 27, 2024
let's have a central place to keep the permission types
ref tauri-apps/plugins-workspace#979
amrbashir pushed a commit to tauri-apps/tauri that referenced this issue Aug 28, 2024
* feat(api): permission types for mobile plugins

let's have a central place to keep the permission types
ref tauri-apps/plugins-workspace#979

* build
lucasfernog added a commit that referenced this issue Aug 29, 2024
PermissionState now also includes a `prompt-with-rationale` variant, which is the Android way of saying "you should explain why your app needs this permission before prompting"
(see https://developer.android.com/training/permissions/requesting#explain for more information)
@github-project-automation github-project-automation bot moved this from Backlog to Done in 2.0 Stable Aug 29, 2024
Sir-Thom pushed a commit to Sir-Thom/plugins-workspace that referenced this issue Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform: android Android specific issues plugin: barcode-scanner
Projects
Status: Done
Development

No branches or pull requests

3 participants