Closed ThorstenBux closed 1 year ago
@ThorstenBux Does the issue happen using this repository example app? https://github.com/zoontek/react-native-permissions/tree/master/example
EDIT: Don't request permissions inside component render, use useEffect
for that.
@zoontek I'll check that and let you know. Thanks
Hi @zoontek , I got the example to work and yes the example reports the same. Please see attached screenshots: This was taken of a fresh install and the system motion permission popup never cam up
Sorry my bad, I had Motion & Fitness off in Settings/Privacy. Turns out that blocks all the Motion permissions. Thank you for your support.
Bug summary
Hi, I'm trying to get this library to request motion sensor permissions on iOS. I'm doing this using the following code:
However, this request always returns:
2023-04-25 21:49:01.025224+1200 AwesomeProject[61100:4985684] [javascript] 'motion', 'blocked'
and no system permissions are shown. I've added the permission key/value into the .plist like this:I'm running my App on a real device (Iphone 14 iOS 16.1.2), not an emulator.
Any pointers are highly appreciated.
Full App code:
Library version
3.8.0
Environment info
Steps to reproduce
Reproducible sample code