Code Monkey home page Code Monkey logo

Comments (16)

petermetz avatar petermetz commented on June 6, 2024

Hi @23pointsNorth

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.

23pointsNorth avatar 23pointsNorth commented on June 6, 2024

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.

petermetz avatar petermetz commented on June 6, 2024

@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.

23pointsNorth avatar 23pointsNorth commented on June 6, 2024

Hi @petermetz,

Sadly I won't be able to share the code. However, I am using:

Hope this helps.

Daniel

from cordova-plugin-ibeacon.

23pointsNorth avatar 23pointsNorth commented on June 6, 2024

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.

petermetz avatar petermetz commented on June 6, 2024

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.

sunsus avatar sunsus commented on June 6, 2024

@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.

petermetz avatar petermetz commented on June 6, 2024

@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.

petermetz avatar petermetz commented on June 6, 2024

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.

mrtree1 avatar mrtree1 commented on June 6, 2024

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.

nicksmetBagaar avatar nicksmetBagaar commented on June 6, 2024

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.

23pointsNorth avatar 23pointsNorth commented on June 6, 2024

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.

nicksmetBagaar avatar nicksmetBagaar commented on June 6, 2024

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.

bampakoa avatar bampakoa commented on June 6, 2024

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.

bampakoa avatar bampakoa commented on June 6, 2024

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.

mrtree1 avatar mrtree1 commented on June 6, 2024

That's good to hear, finally!

from cordova-plugin-ibeacon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.