-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOS background problem #123
Comments
i have the same problem |
Any solutions? I would love to use this plugin for a new project I have coming up but if this isn't working its a bit of a deal breaker for me. |
i got a notification when app is colsed today but still testing
})(); app.initialize(); |
I added these lines and change testing device from an ipad mini to an iphone 5 and it started working for me. //Dionysios |
Hi,
like delegate.didEnterRegion = function(pluginResult) {
} does someone maybe have a codesnippet for that? greez & thx 4 help Sebastian |
Setting up the iBeacon regions like this didn't change a thing
|
Hi,
I have a small project which requires ibeacons ranging in the foreground and monitoring with local notifications on the background. The plugin works great on Android but on IOS once I put the app on the background nothing happens. I looked the issue #53 but no luck.
Here is the code. Any help is appreciated. Thanks in advance!
app.startScanForBeacons = function() {
console.log('startScanForBeacons');
var delegate = new locationManager.Delegate();
delegate.didStartMonitoringForRegion = function(pluginResult){
console.log('Call monitoring');
app.didBeaconsInRegion(pluginResult);
};
// Called when monitoring and the state of a region changes.
// (Not used in this example, included as a reference.)
delegate.didDetermineStateForRegion = function(pluginResult){
//console.log('didDetermineStateForRegion: ' + JSON.stringify(pluginResult))
};
delegate.didStartRangingBeaconsInRegion = function(pluginResult){
console.log('didDetermineStateForRegion: ' + JSON.stringify(pluginResult))
};
delegate.didRangeBeaconsInRegion = function(pluginResult){
console.log('didDetermineStateForRegion: ' + JSON.stringify(pluginResult))
// app.didBeaconsInRegion(pluginResult);
};
// Set the delegare object to use.
locationManager.setDelegate(delegate)
// Request permission from user to access location info.
// This is needed on iOS 8.
locationManager.requestAlwaysAuthorization();
// Start monitoring and ranging our beacons.
for (var r in app.beaconRegions) {
var region = app.beaconRegions[r]
var beaconRegion = new locationManager.BeaconRegion(
region.id, region.uuid, region.major, region.minor)
}
}
// Display pages depending of which beacon is close.
app.didBeaconsInRegion = function(pluginResult) {
The text was updated successfully, but these errors were encountered: