react-native-permissions

An unified permissions API for React Native on iOS, Android and Windows.

MIT License

Downloads
2M
Stars
4K
Committers
109

Bot releases are hidden (Show)

react-native-permissions - 3.0.0

Published by zoontek almost 4 years ago

Version 3.0.0, with iOS 14, Android 11 and Windows support 🎉

What's new

  • Windows support (#530 by @bzoz)
  • Android 11 support
  • iOS 14 support added, iOS 9 support dropped
  • Updated example app
  • New iOS 14+ permission handler: Permission-PhotoLibraryAddOnly. It exposes a new method: openLimitedPhotoLibraryPicker (#510 by @jochem725)
  • New iOS 14+ permission handler: Permission-LocationAccuracy. It exposes two new methods: checkLocationAccuracy & requestLocationAccuracy (#503 by @adapptor-kurt)
  • Support of the new Limited status for PhotoLibrary permission (#510 by @jochem725)
  • Support of the new Limited status for Notifications permission (=Ephemeral, (see Apple doc)

Breaking changes

  1. .podspec extension is no longer required in your Podfile:
target 'YourAwesomeProject' do

  # …

  permissions_path = '../node_modules/react-native-permissions/ios'

- pod 'Permission-Calendars', :path => "#{permissions_path}/Calendars.podspec"
+ pod 'Permission-Calendars', :path => "#{permissions_path}/Calendars"
- pod 'Permission-Camera', :path => "#{permissions_path}/Camera.podspec"
+ pod 'Permission-Camera', :path => "#{permissions_path}/Camera"

  # …

end
  1. request(PERMISSIONS.IOS.PHOTO_LIBRARY) and requestNotifications could now resolve with a RESULTS.LIMITED permission status.

Known issue

Updating the permission status to Ask me next time in your app settings will not update the permission status on Android 11 for now.

react-native-permissions - 2.2.2

Published by zoontek about 4 years ago

  • Fallback UNAuthorizationStatusEphemeral (Notifications) and PHAuthorizationStatusLimited (PhotoLibrary) iOS 14 permission statuses to granted until proper support is done.
react-native-permissions - 2.2.1

Published by zoontek about 4 years ago

  • Fix Xcode 12 compatibility (#519 by @Fetten)
react-native-permissions - 2.2.0

Published by zoontek about 4 years ago

  • Support AppTrackingTransparency framework on iOS 14 (#501 by @sohail-dragon)
react-native-permissions - 2.1.5

Published by zoontek over 4 years ago

  • Fix Bluetooth API MISUSE error on iOS 12 (Fix #464)
react-native-permissions - 2.1.4

Published by zoontek over 4 years ago

  • Fix compatibility with TypeScript versions < 3.8.0 (#456 by @huntie)
react-native-permissions - 2.1.3

Published by zoontek over 4 years ago

  • Don't reject with an error if FaceID is locked out (Fix #453)
  • Improve test warning (#450 by @ghiculescu)
react-native-permissions - 2.1.2

Published by zoontek over 4 years ago

  • Check granted status before blocked status on Android check (Fix #445)
react-native-permissions - 2.1.1

Published by zoontek over 4 years ago

react-native-permissions - 2.1.0

Published by zoontek over 4 years ago

  • Add checkMultiple / requestMultiple methods (Fix #354, #435)
  • Add unavailable and blocked check on check() calls (Fix #419)
  • Disallow Bluetooth Peripheral request in iOS simulator
  • Make Should be one of: () message more explicit (Fix #389)
react-native-permissions - 2.0.10

Published by zoontek over 4 years ago

  • Avoid relying on shouldShowRequestPermissionRationale on Android
  • Remove deprecated react-native link mentions in warnings (by @thymikee)
  • Fix Android example project icons
  • Add workarounds instructions for CocoaPods 1.9
  • CMMotionActivityManager: Reduce requested activity time window to the maximum
react-native-permissions - 2.0.9

Published by zoontek almost 5 years ago

  • Prevent permission handlers being aggressively cleaned by ARC before resolving the request (#391 by @booker0108)
react-native-permissions - 2.0.8

Published by zoontek almost 5 years ago

react-native-permissions - 2.0.7

Published by zoontek almost 5 years ago

  • Fix #335 & #347: Build fail in index.ts Unexpected token
react-native-permissions - 2.0.6

Published by zoontek almost 5 years ago

  • Fix checkNotifications / requestNotifications returning denied instead of blocked on Android (#382)
react-native-permissions - 2.0.5

Published by zoontek almost 5 years ago

react-native-permissions - 2.0.4

Published by zoontek almost 5 years ago

  • Add a Jest mock file
  • Avoid return unavailable if bluetooth-peripheral is not set in UIBackgroundModes (fix #366)
  • Add a new workaround about use_frameworks! in the documentation (#372 by @Dimon70007)
react-native-permissions - 2.0.3

Published by zoontek almost 5 years ago

  • Avoid return unavailable if location is not set in UIBackgroundModes to allow significant location tracking feature usage
  • Add instructions about use_frameworks! in the documentation
react-native-permissions - 2.0.2

Published by zoontek about 5 years ago

  • Fix named export of constants through index (#337 by @draperunner)
react-native-permissions - 2.0.1

Published by zoontek about 5 years ago

  • Fix missing notifications permission pod with use_frameworks!(by @dungnguyen10989, fix #331)
  • Fix location permissions requests on iOS 13 (fix #329)
  • Split types out so module is easier to mock for testing (fix #324)
  • Fix package.json homepage and repository url (fix #330)
  • Add warnings about missing UIBackgroundModes
Package Rankings
Top 0.77% on Npmjs.org
Badges
Extracted from project README
mit licence npm version npm downloads platform - android platform - ios platform - windows
Related Projects