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

Fixed request camera permission flow to solve issue 173 #186

Merged
merged 4 commits into from
Apr 12, 2020
Merged

Conversation

devtronic
Copy link
Member

@devtronic devtronic commented Feb 22, 2020

Fixes the "request for camera permission" flow which previously caused an app crash which is described in #173 .

Cause:
The scanner view was created before the permission was requested.

Fix:
Create the scanner view after the permission was granted

Test:

# pubspec.yaml
dependencies:
  barcode_scan:
    git:
      url: https://github.com/mintware-de/flutter_barcode_reader.git
      ref: fix_173

@ir2pid
Copy link

ir2pid commented Mar 2, 2020

the fix works for me

@devtronic
Copy link
Member Author

@ir2pid I updated the PR. The permission should now be requested before the scanner activity is shown. Can you confirm if this fix still working for you?

@devtronic devtronic merged commit 55c7073 into 2.x Apr 12, 2020
@embedur-sarathis
Copy link

It won't work for me

@devtronic devtronic deleted the fix_173 branch April 13, 2020 19:46
@devtronic
Copy link
Member Author

@embedur-sarathis : Which version are you using? And what does "It won't work for me" mean?
Please provide more details including

  • The log output,
  • your Flutter Version,
  • Android / iOS Version
  • A short description how to reproduce the problem.

@embedur-sarathis
Copy link

embedur-sarathis commented Apr 13, 2020 via email

@devtronic
Copy link
Member Author

@embedur-sarathis I can't reproduce the problem on my Samsung Galaxy S8+.
Please provide the log which contains a stacktrace with the crash that we can address the problem.

@embedur-sarathis
Copy link

embedur-sarathis commented Apr 20, 2020 via email

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