App asks for Microphone access while user tries to scan QR or capture an image (#1148)
This commit is contained in:
parent
08247698c3
commit
808aa46f4f
|
@ -17,7 +17,7 @@
|
|||
(defn request-access [callback]
|
||||
(if platform/android?
|
||||
(callback true)
|
||||
(let [result (.checkDeviceAuthorizationStatus camera-default)
|
||||
(let [result (.checkVideoAuthorizationStatus camera-default)
|
||||
result (.then result #(callback %))
|
||||
result (.catch result #(callback false))])))
|
||||
|
||||
|
|
Loading…
Reference in New Issue