From 31fc55ffa0d0f21a018c02d1ed65b647d1c494e4 Mon Sep 17 00:00:00 2001 From: Mattia Panzeri Date: Sat, 20 Jan 2018 03:32:47 +0100 Subject: [PATCH] chore(project): Prepare `1.4.0` release --- README.md | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 87339ed..6a7c353 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Interactively check Location Services and Bluetooth status ```js import ConnectivityManager from 'react-native-connectivity-status' -// Check if Location Services are enabled (on Android) or app has Location permission (on iOS) +// Check if Location Services are enabled const locationServicesAvailable = await ConnectivityManager.isLocationEnabled() // Check if Bluetooth is ON @@ -69,6 +69,9 @@ ConnectivityManager.enableBluetooth() **ATTENTION:** On `iOS` the `enableLocation` method won't ask the user for `Location Permissions` but will redirect to `iOS` location settings screen to allow the user to enable `Location Services`. +In case `Location Services` are active but `Location Permissions` have yet to be asked to the user the method call will throw an error. + +**ATTENTION:** Starting from `iOS 11` redirect to specific Settings page has been disabled, so the `enableLocation` method will only redirect to the `Settings` main screen. --- Made with :sparkles: & :heart: by [Mattia Panzeri](https://github.com/panz3r) and [contributors](https://github.com/nearit/react-native-connectivity-status/graphs/contributors) \ No newline at end of file diff --git a/package.json b/package.json index 5342d1a..cbae4ee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-connectivity-status", - "version": "1.3.0", + "version": "1.4.0", "description": "A ReactNative module to check Bluetooth and Location status on Android and iOS", "author": { "name": "Mattia Panzeri",