Comments (16)
Could you please let us know the platform you are working with? If it's both Android and iOS I'd also be interested if the issue is consistent across the platforms?
I suspect it's iOS only and the swizzling is the part, where it goes wrong since other plugins are trying to do that as well (push, most notably, but I guess some others too).
Peter
from cordova-plugin-ibeacon.
Hi Peter,
I've tested and this happens on both Android and iOS. I think it is somehow dependent on this plugin, as when I try with an only iOS iBeacon plugin, it works in the whole project.
Regards,
Daniel
from cordova-plugin-ibeacon.
@23pointsNorth Thanks for the very helpful info!
I'll try to recreate the problem when I get some time.
I know it's unlikely, but if you happen to be able to share the project source that you used for your tests that'd be a time saver. Of course if you can't, no problem at all, I'll just recreate one myself.
Peter
from cordova-plugin-ibeacon.
Hi @petermetz,
Sadly I won't be able to share the code. However, I am using:
- Barcode: https://github.com/wildabeast/BarcodeScanner
- Push: https://github.com/phonegap-build/PushPlugin
Hope this helps.
Daniel
from cordova-plugin-ibeacon.
Hi @petermetz,
I have some more debugging information.
I've tested the following situation.
Sample barcode application with no ibeacon - working.
Sample barcode application with ibeacon v1.1 - working for iOS.
Sample barcode application with ibeacon v2 or master - not working for iOS or Android.
Playing around with the order at which the plugins were added in cordova revealed some major information.
[SOLUTION] If I add the ibeacon plugin first and then everything else, it successfully works with master branch. Any other configuration - fails.
Hope this helps!
Daniel
from cordova-plugin-ibeacon.
Hi @23pointsNorth,
Thanks you very much, all of this is really helpful and very well laid out information. I'll try to reproduce the issue and hopefully find a fix.
Peter
from cordova-plugin-ibeacon.
@23pointsNorth Where can I set the loading order?
I have the problem that I never get the deviceready event.
We also found out that when ww put the application to the background and resume it the deviceready event is fired and the other plugins are loaded.
from cordova-plugin-ibeacon.
@sunsus I don't think it's the loading order in this context it probably means that he added the the plugins in the specified order to his project, not about actually controlling how the framework loads the plugins at runtime.
from cordova-plugin-ibeacon.
I've just fixed a problem which might or might not be related to this issue but it was worth to do a bug-fix release regardless (v3.1.1).
If you could see if removing the plugin and installing the newer version gives this a fix that would be really great.
Thanks in advance,
Peter
from cordova-plugin-ibeacon.
It's certainly sounds like the clobber might have been the problem if it conflicts with any other plugin, so please try the latest version 3.1.2 thanks to a PR from @sunsus
from cordova-plugin-ibeacon.
Is there a solution on the way for this problem. I am currently working on an app that relies on both GPS and IBEACON. If i use them seperatly they work just fine, but if I add the ibeacon plugin to my project it just breaks the gps plugin. And something strange is that when i start ranging i need to double click my home button to make it start, or else it does nothing .
if you want to check the project out, this is the link where you can download it (build with ionic) :
https://drive.google.com/file/d/0B7pxk_rKjPcJMVNONndTNjJVQjg/view?usp=sharing
from cordova-plugin-ibeacon.
As I wrote earlier. The solution (mitigating the problem tbh) is to add the ibeacon plugin first in your project. Then, add all other plugins (gps, etc). This is how I got other BLE, GPS, camera plugins to work.
from cordova-plugin-ibeacon.
I have tried that, even removed all the ones from ionic. Just to be sure. But still the same problem keep occurring. As soon as I add the plugin, the rest stops working. Xcode gives me this warning, maybe it has something to do with that ?!
(https://cloud.githubusercontent.com/assets/8414723/4717796/3153f76c-5919-11e4-9d5d-75c73ab29b72.png)
from cordova-plugin-ibeacon.
Hi,
I have tested the latest version from PG build (3.1.2) and the problem remains. I tested it multiple times and most of them worked correctly. Unfortunately I cannot find a pattern when the problem appears.
from cordova-plugin-ibeacon.
Hi guys,
I tested PG build 3.2.1 version of the plugin and I confirm that the issue is resolved.
from cordova-plugin-ibeacon.
That's good to hear, finally!
from cordova-plugin-ibeacon.
Related Issues (20)
- trying to use in Ionic/Capacitor env. , no response HOT 8
- 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
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.