forked from petermetz/cordova-plugin-ibeacon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(FAQ.md): explanation for configuration changes in managed services
- Loading branch information
Showing
1 changed file
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |