Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

iOS/Android: once permissions are denied camera will flash when the user tries to scan #189

Closed
natalieeeflores opened this issue Mar 4, 2020 · 5 comments · Fixed by #186
Labels

Comments

@natalieeeflores
Copy link

The app will briefly open the camera when a user denies camera permissions. I am able to reproduce this behavior with the example app in this repo.

Steps to reproduce:

  1. Press scan button
  2. Deny camera permissions
  3. Press scan button again

barcode_scan version: 2.0.1

Devices reproduced on:
iPhone 10R, iOS 13.3.1
Samsung Galaxy S9, Android 10

RPReplay_Final1583356036

@devtronic
Copy link
Member

Please check if the fix in PR #186 works for you🙂

@devtronic devtronic linked a pull request Mar 5, 2020 that will close this issue
@devtronic devtronic added the bug label Mar 5, 2020
@natalieeeflores
Copy link
Author

I've been having some issues testing the fix on android. I keep getting build failures when I try to run my project: Execution failed for task ':barcode_scan:compileDebugKotlin'.
However, I have been able to run the project on an iOS device and can confirm that the bug is still reproducible

@devtronic
Copy link
Member

Please run flutter clean and then open the Android Module directly (Android Studio -> Right click on your project root -> Flutter -> Open Android Module in Android Studio)

@natalieeeflores
Copy link
Author

Unfortunately, my project still isn't running on android after following those steps. Here's the output from android studio:
/.pub-cache/git/flutter_barcode_reader-ea67104d0024de29a73602a8c35c279900db20b7/android/src/main/kotlin/de/mintware/barcode_scan/BarcodeScannerActivity.kt: (33, 30): Unresolved reference: it

I'm running it on a new project that I've created, I followed the instructions in the readme, and copy-pasted the code in example/lib/main.dart. Thanks for your help in all this!

@devtronic
Copy link
Member

In 2.0.2 the problem was resolved: https://pub.dev/packages/barcode_scan/versions/2.0.2

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

Successfully merging a pull request may close this issue.

2 participants