Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
add description on required background mode for advertising on iOS. 
fix typo in startAdvertising sample code.
  • Loading branch information
mgrubinger authored and petermetz committed Dec 23, 2017
1 parent 2eb091c commit cd57ea7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ On iOS 8, you have to request permissions from the user of your app explicitly.
See the [LocationManager](https://github.com/petermetz/cordova-plugin-ibeacon/blob/master/www/LocationManager.js)'s
related methods: ```requestWhenInUseAuthorization``` and ```requestAlwaysAuthorization``` for further details.

In order to use Advertising (e.g ```startAdvertising```), the iOS-Capability "Location updates" is required. (set in Xcode -> [your Target] -> Capabilities -> Background Modes -> Location updates)

#### Standard [CLLocationManager](https://developer.apple.com/library/ios/documentation/CoreLocation/Reference/CLLocationManager_Class/CLLocationManager/CLLocationManager.html) functions


Expand Down Expand Up @@ -269,7 +271,7 @@ cordova.plugins.locationManager.isAdvertisingAvailable()
if (isSupported) {
cordova.plugins.locationManager.startAdvertising(beaconRegion)
.fail(conole.error)
.fail(console.error)
.done();
} else {
console.log("Advertising not supported");
Expand Down

0 comments on commit cd57ea7

Please sign in to comment.