-
-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.0.0: iOS 14 and Android 11 support #522
Conversation
…curacy # Conflicts: # example/ios/Podfile.lock # ios/RNPermissions.h
…dd informative error when purposeKey is not specified.
…on possible permission types.
…curacy # Conflicts: # example/ios/Podfile.lock
I published a first version: https://www.npmjs.com/package/react-native-permissions/v/3.0.0-beta.0 |
If you have multiple ViewControllers nested, the prompt for the LimitedLibraryPicker will not prompt on the right viewcontroller, which makes nothing actually happen. Added a quick cycler to go through the tree until it finds the top most view controller.
As pointed out by Zoontek, there is a function to find the top view controller in React Native. Importing that function, and then updated the topViewController to use that function.
Fix LimitedLibraryPicker not popping up.
Second beta is available: https://www.npmjs.com/package/react-native-permissions/v/3.0.0-beta.1 |
Hi guys, first of all thanks for this SuperLibrary :) I am confused, may be you can help me out. My App is targetSdkVersion = 29 and Google Console is telling us: Play Store Warning “Starting May 5th you must let us know why your app requires broad storage access” And I have this in my manifest.xml:
and and I have this version in my project: "react-native-permissions": "^2.2.2" So What do you recommend me to do?
Thanks @zoontek and @mikehardy :) Matt. |
There is lots of documentation on the google site about how to manage the transtition on that permission, and what you need to do going forward. It's far out of scope for this repository - it's a very involved subject. You must educate yourself: https://developer.android.com/about/versions/11/privacy/storage#scoped-storage |
Yes @mikehardy you are all right. Sorry to ask here, it is out of scope. The thing is I migrate to API 30 and everything is working in the APP and I didn't upgrade to react-native-permissions": "3.0.0" ... I am still using 2.2.2 and it saves videos to the external storage in Android 11 with the version 2.2.2 permission without any problem. Do I miss something? Sorry & Thanks again! |
You must read the documents The library asks the permission the same. The permission is the same name. The platform is ignoring a flag on 11. The review will disallow it soon unless your app actually needs it. All in the docs. |
Thanks @mikehardy :) |
@matamicen did you find any solution for this ? |
Hi guys, are we planning on crossing out the last two items on TODO list? @zoontek |
@tungduonghgg123 Supporting Ask next time feature is currently not possible on Android as the OS permission system is broken. The choice has been made to fix this issue instead: facebook/react-native#30158 (read the comments), which was considered more problematic then supporting "Ask next time". If Google fix Android one day, we will remove the |
I am using |
@satya-imaginea It can't be done because of facebook/react-native#30158. Android permission system is currently broken. |
thank you for the quick update |
Hi everyone 👋
As you all know, a few days ago Apple released iOS 14, and Google Android 11. This versions came with various permissions changes:
On iOS
AddOnly
photo permission (Support iOS 14 photo permission API changes #510)Limited
status forPhotoLibrary
permission (Support iOS 14 photo permission API changes #510)Ephemeral
status forNotifications
permission (see Apple doc)On Android
Ask every time
feature ('ask every time' returnsRESULT.BLOCKED
#517)TODO
PHOTO_LIBRARY_ADD_ONLY
Limited
status forPhotoLibrary
permissionEphemeral
status forNotifications
permission (+ theProvisional
status)Ask every time
feature on Androidexample
projectMore…? (I might be missing several things)