Giter Site home page Giter Site logo

Comments (4)

petermetz avatar petermetz commented on June 11, 2024

I haven't done my own research on this topic yet, but others did so, in case you haven't yet found these: SO Topic 1, SO Topic 2, Radius Networks Research

Based on those my key takeaways are as follows:

  • Upgrade to iOS 7.1.x if you haven't yet done so, Apple improved the usability of the iBeacon related APIs there, as far as I remember.
  • Take your time when testing, sometimes stuff just takes a lot of time, as stated by others.
  • For me personally it seems that you just cannot count on things to work with a guaranteed latency yet, but I would expect later versions of iOS/iDevices to improve on that.

Sorry that I couldn't provide a more convincing answer to this one, if you have any other questions feel free to ask.

Peter

from cordova-plugin-ibeacon.

julienandre avatar julienandre commented on June 11, 2024

Hi,

Thank you for this plugin that works perfectly for me when app is launched.

But I tried to throw a notification when the app is in background or closed as it seems possible with the iOS7.1 , I added cordova-plugin-local-notifications to throw notification when iBeacon on sight :

window.plugin.notification.local.add({ message: 'BEACON1!'+beacon1_seen.count });

And forced these notification parameters into CDVIBeacon.m file :

398. beaconRegion.notifyOnEntry = true;  
399. beaconRegion.notifyOnExit = true; 
400. beaconRegion.notifyEntryStateOnDisplay= true;

It results in notifications thrown when i switch ipad off then on (so notifyEntryStateOnDisplay works well), but none when ipad is launched and application in background or off...

As I'm new to cordova application, i wondered if i've done something wrong or if i missed a step ?

Is it also possible to directly launch the closed application from an iBeacon on sight, using this plugin ?

Thank you very much for these answers.

from cordova-plugin-ibeacon.

petermetz avatar petermetz commented on June 11, 2024

Hi @julienandre

As I recently discovered, the reliability of callbacks for region monitoring (circular and beacon regions) are not perfect at the moment, when it comes to closed apps.

The version 2 branch will make a significant improvement on this, but is yet incomplete.
I'd suggest waiting for the release of the version 2 (should happen in a week or two) and then doing your tests again.

from cordova-plugin-ibeacon.

petermetz avatar petermetz commented on June 11, 2024

The version 2 branch is now released, and it should solve this issue with the new callback mechanism between the native layer and the DOM.

Please feel free to reopen this if any issues arise after upgrading to the version branch.

Important note: Version 2 significantly changes the API surface by being based on promises as the return values.

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.