Not handling authorization properly
piotrros opened this issue · 2 comments
piotrros commented
When I run the app first time, I get didFailure twice with error:
unauthorized(__C.AVAuthorizationStatus)
unauthorized(__C.AVAuthorizationStatus)
and at the same time authorization alert shows up. When I tap "Deny" didFailure is not triggered anymore. It should not throw this errors before user makes a decision.
piotrros commented
I had to handle authorization myself before using this library:
Not sure if it is iOS 14 thing or it was like this before.
hitsubunnu commented
You need to handle authorization like this https://github.com/mercari/QRScanner/blob/master/QRScannerSample/QRScannerSample/ViewController.swift#L24