Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Releases: nearit/react-native-connectivity-status

1.5.2

09 Dec 13:46
f0fcd7d
Compare
Choose a tag to compare
Merge pull request #12 from Intelity/master

Set version 1.5.2

1.5.1

19 Mar 15:55
Compare
Choose a tag to compare

Features

  • Android: use rootProject SDK versions

v1.5.0

29 Aug 11:12
Compare
Choose a tag to compare

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

20 Jan 02:36
Compare
Choose a tag to compare

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

19 Jan 13:37
Compare
Choose a tag to compare

Features

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

Fixes

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