This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
Releases: nearit/react-native-connectivity-status
Releases · nearit/react-native-connectivity-status
1.5.2
1.5.1
Features
- Android: use
rootProject
SDK versions
v1.5.0
Breaking Changes
isLocationEnabled()
has been renamed toareLocationServicesEnabled()
- removed
enableBluetooth()
andenableLocation()
methods
Features
isLocationPermissionGranted()
checks for Location permission.
Location permission states are:
- "Location.Permission.Granted.WhenInUse"
- "Location.Permission.Granted.Always"
- "Location.Permission.Denied"
Note: on Android there's noWhen in use
state.
Fixes
- removing methods that open
Settings
to enable location or bluetooth prevents app rejection by Apple.
v1.4.0
Breaking Changes
isLocationEnabled
oniOS
now checks forLocation Services
status instead of checking App permissions (Fix #3)
Fixes
enableLocation
now opensLocation Services
page in case they are disabled, in case location permissions have been asked before the current app settings page is shown, if permission have yet to be asked to the user the promise will be rejected.
Known Issues
On iOS 11, an app cannot open a specific Settings page, so calling enableLocation
when the Location Services
are not enabled will only open the Settings app on the main screen, so will also do the enableBluetooth
method.
Keep track of this issue at #4 .