React Native Connectivity Status Versions Save

A ReactNative module to check Bluetooth and Location status on Android and iOS

1.5.2

4 years ago

1.5.1

5 years ago

Features

  • Android: use rootProject SDK versions

1.5.0

5 years ago

Breaking Changes

  • isLocationEnabled() has been renamed to areLocationServicesEnabled()
  • removed enableBluetooth() and enableLocation() 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 no When in use state.

Fixes

  • removing methods that open Settings to enable location or bluetooth prevents app rejection by Apple.

v1.4.0

6 years ago

Breaking Changes

  • isLocationEnabled on iOS now checks for Location Services status instead of checking App permissions (Fix #3)

Fixes

  • enableLocation now opens Location 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 .

v1.3.0

6 years ago

Features

  • enableLocation now works on iOS
  • enableBluetooth now works on iOS

Fixes

  • Fix #1 (iOS Bluetooth status change event always giving true as state)