cordova-plugin-ibeacon
Version:
Proximity Beacon Monitoring and Transmission Plugin (supporting iBeacons)
30 lines (18 loc) • 1.12 kB
Markdown
# iBeacon Cordova Plugin - Frequently Asked Questions
## 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?
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