Comments (6)
I've been experiencing the same issue, it will be nice if the app monitors the region in background, that way we can notify users when entering/exiting a region.
from cordova-plugin-ibeacon.
It is possible to do this with the plug-in. The one catch I seem to be having is that if the app is close for a significant period of time, it no longer monitors the regions that I specified. However, if the app is recently closed, or is in the background, it can monitor regions just fine by following the example in the documentation.
from cordova-plugin-ibeacon.
@sunsus To my knowledge, iOS stops ranging when the app is in the background, so the plugin has no way to make that possible. Well, maybe with Core Bluetooth it is possible to emulate similar behaviour, but that's out of my reach at the moment.
@pipozoft @morrissinger You guys are talking about monitoring
, not ranging
, right?
from cordova-plugin-ibeacon.
@petermetz yes monitoring, I'm trying to make it alert me with a local notification (using other plugin) when I enter and exits the region. For that the app needs to be in the background and continue monitoring.
Also I don't know if it's my beacon but even if my phone it's next to it, it keeps saying that it's outside the region. Al thought ranging says the beacon is right next to me.
from cordova-plugin-ibeacon.
@pipozoft Can you try enabling debug notifications please?
It's not very well documented (yet) but the plugin supports posting local notifications for debug purposes, out of the box from the native layer, whenever an enter/exit event is received from iOS.
This means if you call locationManager.enableDebugNotifications()
before you start monitoring, you should see local notifications about the exit/entry events. If those don't pop up, then it means the native layer never received the events you are waiting for, and that's why the plugin doesn't know anything about them either.
If the notifications pop up, but your DOM delegate methods are not fired, that usually means a bug in the plugin's transport layer.
I hope this helps.
Peter
from cordova-plugin-ibeacon.
@petermetz -- I am talking about monitoring. Everything that I read suggests that ranging in background or on a closed app state is completely impossible, with the exception of one article I read from Apple (which I will link if I can find it again) that says it is "generally" not possible.
from cordova-plugin-ibeacon.
Related Issues (20)
- what is the identifier used for? looking at all the underlying code it isn't used for beacon recognizing. HOT 2
- when debug is enabled, where is it viewable or stored? HOT 1
- how do I build another version of this library? HOT 1
- using thru Ionic-Native with Capacitor on android , Uncaught (in promise) TypeError: e.beacon.stopRangingBeaconsInRegion is not a function HOT 1
- i expect to see duplicates of beacons where there are multiple, but only see one.. am I doing something wrong? HOT 2
- is there a way to get the mac address of the beacon? HOT 1
- Does this plugin support android 9 and greater ? HOT 7
- Read custom field
- No beacons are found in Andoid 11 smartphones HOT 1
- exitRegion configuration timeout request
- Error: Importing IBeacon which does not have a ɵmod property
- Question: How can I decrease advertising interval as ibeacon device in android and ios?
- Sometimes Beacons within the range are detected differently. HOT 1
- Major and minor with wrong values HOT 1
- Compatibility with Android 12 HOT 4
- Add support of Android 12 (Google API 31) HOT 21
- Use plugin on iOS16+, there's no beacons response from callback! What does can we do on iOS16+
- cordova-plugin-ibeacon not working starting android 11 HOT 7
- Dependency missing in build.gradle for org.altbeacon:android-beacon-library:2.16.1 HOT 4
- Missing dependicies
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-ibeacon.