Skip to content

Commit

Permalink
docs(FAQ.md): explanation for configuration changes in managed services
Browse files Browse the repository at this point in the history
  • Loading branch information
petermetz committed Dec 25, 2017
1 parent b162696 commit 47ff8de
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions FAQ.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
# iBeacon Cordova Plugin - Frequently Asked Questions

### How do I debug notifications in the background?
## How do I debug notifications in the background?

Enable the debug logging and inspect the console logs of your device through XCode.


### I would like to customise how frequently the AltBeacon library scans for proximity devices (beacons). How do I do that?
## I would like to customise how frequently the AltBeacon library scans for proximity devices (beacons). How do I do that?

Introduce an Android specific preference in your config.xml, something like this:

<preference name="com.unarin.cordova.beacon.android.altbeacon.ForegroundBetweenScanPeriod" value="5000" />

This will ensure that the AltBeacon library will wait five seconds in-between foreground scans.
The default is 0 for the mentioned configuration value.

## How do I configure the permissions when working with a managed service (Phonegap Build, Ionic Cloud, etc.)

The newer versins of the cordova CLI come with features to help you do that:

```xml
<edit-config file="*-Info.plist" target="UIBackgroundModes" mode="merge">
<array>
<string>location</string>
</array>
</edit-config>
```

https://github.com/petermetz/cordova-plugin-ibeacon/issues/310#issuecomment-329564186

0 comments on commit 47ff8de

Please sign in to comment.