Closed vasylnahuliak closed 1 year ago
FYI: PermissionsAndroid from 'react-native' also has the same issue https://github.com/facebook/react-native/issues/34547
@vasylnahuliak
There you are!
Have you tried to use PermissionsAndroid
?
I have fixed this issue with this.
I hope you would fix your issue!
@boodong-rn The Android part of this module is nearly identical to PermissionsAndroid
, it just add support for UNAVAILABLE
(checked after any request, it just read the permissions manifest)
@zoontek Yes, I was wrong. I got still same issue. It's not been resolved. Do you have any idea about solving this issue?
same issue, I use react-native 0.70.2
Hi guys, I keep getting permissionStatus = blocked for Android. Anything changed?? Isn't Android notifications enabled by default
the same issue, I use react-native 0.64.2
@sagarjeu important to note that you are pretty far out of the support range at this point: https://github.com/reactwg/react-native-releases#which-versions-are-currently-supported
Cross referencing my comment at https://github.com/facebook/react-native/issues/34547#issuecomment-1753391728 I think this is working as expected, there is no crash, the process is likely to be killed on purpose by the OS to apply the revocation of the one time permission.
@fabiendem Good to know, and flawless explanations 👌
I'm closing this.
Bug summary
react-native-permissions on Android does not handle One-Time Permissions after exiting (background or lock phone) from the application for more than ~1 minute.
Video example
Logcat
Library version
3.6.1
Environment info
Steps to reproduce
Steps to reproduce:
Platform: Android Physical device: Nokia G20, Android 12 Emulator: Pixel 5 API 31, Android 12
Reproducible sample code
Repo with example: https://github.com/vasylnahuliak/react-native-android-one-time-permission/blob/react-native-permissions/App.js