Releases: zoontek/react-native-permissions
Releases · zoontek/react-native-permissions
4.1.0
- Add expo config plugin for iOS permissions setup by @fobos531 in #834
- Improved error handling for
Attempt to invoke interface method 'void com.facebook.react.bridge.Callback.invoke(java.lang.Object[])'
by @webraptor in #835
4.0.4
- Fix a regression caused by the example app (now using
yarn link
) that updated the project podspec
4.0.3
- Add Android Gradle plugin 8 compatibility
- Fix
AndroidManifest.xml
namespace deprecation warning
4.0.2
- Support
PERMISSIONS.IOS.MEDIA_LIBRARY
permission request on the iOS simulator (#831 by @asafkorem)
4.0.1
- Enforce
checkNotifications
behaviour on Android < 13 to match the Android runtime permissions flow and all others permissions behaviour (for more details, I made a post here).
- Update example app to React Native 0.73.0
4.0.0
Version 4.0.0, with iOS 17 and Android 14 support 🎉
⚠️ This version requires Xcode 15 and drops support for iOS < 12.4 and React Native < 0.70.
What's changed
- Deprecated iOS permission setup methods have been removed.
setup_permissions
is now the unique way to do it
openLimitedPhotoLibraryPicker
has been renamed openPhotoPicker
PERMISSIONS.IOS.BLUETOOTH_PERIPHERAL
has been renamed PERMISSIONS.IOS.BLUETOOTH
What's new
- New Android permission:
PERMISSIONS.ANDROID.READ_MEDIA_VISUAL_USER_SELECTED
(closes #827)
- New iOS permission:
PERMISSIONS.IOS.CALENDARS_WRITE_ONLY
(closes #804)
openPhotoPicker
now resolves on picker close, not immediately (closes #689)
PERMISSIONS.IOS.APP_TRACKING_TRANSPARENCY
now resolves the requestTrackingAuthorizationWithCompletionHandler
callback value (closes #823)
How to migrate
- Migrate to the
setup_permissions
method
- Replace
PERMISSIONS.IOS.BLUETOOTH_PERIPHERAL
with PERMISSIONS.IOS.BLUETOOTH
- Replace
BluetoothPeripheral
with Bluetooth
in setup_permissions
- Replace
NSCalendarsUsageDescription
with NSCalendarsFullAccessUsageDescription
- Replace
NSRemindersUsageDescription
with NSRemindersFullAccessUsageDescription
- Replace
openLimitedPhotoLibraryPicker
with openPhotoPicker
What's next?
This release is quite minimal. If your company wants a new feature, feels free to reach me via email to hire me for it 🙂
3.10.1
- Catch
NullPointerException
in onRequestPermissionsResult
(fix #820)
3.10.0
- Rollback 3.9.3 changes (fix #813)
- Remove
[CLLocationManager locationServicesEnabled]
check. It's not needed, if Location services are disabled, iOS will return BLOCKED
(+ it matches Android behaviour)
3.9.3
- Execute
[CLLocationManager locationServicesEnabled]
in an async way to prevent UI freezes when checking / requesting location permissions on iOS (82e178f)
3.9.2
- Remove the necessity to declare
NSLocationAlwaysUsageDescription
as it's deprecated in iOS 17 (fixes #806)
- Replace missing usage description error logbox with a warning one