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

Commit

Permalink
chore(project): Prepare 1.4.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattia Panzeri committed Jan 20, 2018
1 parent 4c01a9d commit 31fc55f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 31fc55f

Please sign in to comment.