GithubHelp home page GithubHelp logo

Comments (15)

MacKentoch avatar MacKentoch commented on July 29, 2024

Hi @marcoacierno

Thank you for this complete and helpful issue.
You are right this is exactly the same as react-native-ibeacons for this version.

minor and major are optionals but the bridge clearly does not handle that.
To be honest I did not even test myself with null major / minor.

I will fix it.
It can be useful to be able to monitor or range multiple beacons sharing same UUID.

from react-native-beacons-manager.

MacKentoch avatar MacKentoch commented on July 29, 2024

Going deeper into monitoring reveals that there is more to be updated.

I suspect it comes from side effects after upgrading altbeacon.
It will take more time than I thought but is is ok.

from react-native-beacons-manager.

Davidcreador avatar Davidcreador commented on July 29, 2024

Hello @MacKentoch! I was trying to do the same and it didn't work. :(
Do you have any update on this? If I can help you with something I'd love to.

from react-native-beacons-manager.

MacKentoch avatar MacKentoch commented on July 29, 2024

hi @Davidcreador thank you.
But don't worry I get it working.
I just need to test a bit more but I'm sure it was just about passing null from React Native to an int is not working as expected.

from react-native-beacons-manager.

MacKentoch avatar MacKentoch commented on July 29, 2024

Glad to annonce: I've just publish new version v1.0.2 to fix android monitoring with major and minor set as null.

Check android example that I updated to validate the fix.

Note: monitoring is slow compared to regioning.
In case of leaving event it can take few seconds to trigger.

I don't know if it is expected behaviour but it comes from altbeacon.

Thank you for your feedbacks and issues = precious help!

from react-native-beacons-manager.

marcoacierno avatar marcoacierno commented on July 29, 2024

Amazing! Thank you :) I will update my version / try it as soon as I can. ^^ (I guess we can close the issue?)

from react-native-beacons-manager.

FilipMessa avatar FilipMessa commented on July 29, 2024

Hi i have same issue with new version v1.0.2
i try run your example project on Android 6.0.1

TypeError: expected dynamic type 'double' but had type 'null' (constructing arguments for BeaconsANdroidModule.startMonitoring at argument index 2)'

from react-native-beacons-manager.

MacKentoch avatar MacKentoch commented on July 29, 2024

Hi @FilipMessa I'm sorry I thought it was fixed.

I tested on real device (it is mandatory) and mine is a Nexus 5X (up to date: 7.1.1).

I doubt it is a matter of android version.
But may I ask you a favor to help understanding where should I put more effort to fix it:

could you try to launch the example here on the same condition (your device with Android 6.0.1)?

This example is the what I exactly use when working on this library.
It could be nice to compare your experience with your own device.

@marcoacierno I'm affraid we can't close this issue right now... But it is just a matter of time 😄

from react-native-beacons-manager.

FilipMessa avatar FilipMessa commented on July 29, 2024

Hi, i have been trying your example, but still had the same result:
TypeError: expected dynamic type 'double' but had type 'null' (constructing arguments for BeaconsANdroidModule.startMonitoring at argument index 2)'

Device:
ANDROID: 6.0.1
Samsung Galaxy S4 GT-I9505

from react-native-beacons-manager.

MacKentoch avatar MacKentoch commented on July 29, 2024

Thank you @FilipMessa for the precious feedback.

I will investigate:

  • wether I messed myself when publishing (why not)
  • or it is related to some kind compatibility between altbeacon and android 6 (I should easily find an android devices with this version).

Anyway it will be fixed (not only I maintain this lib but I need it working too).

from react-native-beacons-manager.

MacKentoch avatar MacKentoch commented on July 29, 2024

I've tested the example on a 6.0 android: no error BUT nothing working...

So I guess I have to envistigate altbeacon library compatibility.
Things are always far more simple on iOS (yes I come from iOS^^).

from react-native-beacons-manager.

FilipMessa avatar FilipMessa commented on July 29, 2024

I understand you iOS is more developer friendly than Android in most cases. Anyway i would like to thank you for your job on this module.

I have tried write my own BeacnsScaner componet and when i Use:
startMonitoringForRegion() without minor and major i have had these error: Error: Unable to parse Identifier. And when i put minor and major also to regionargument, it is not working and no error (as you mention before).

Device:
ANDROID: 6.0.1
Samsung Galaxy S4 GT-I9505

from react-native-beacons-manager.

MacKentoch avatar MacKentoch commented on July 29, 2024

@FilipMessa I think I should investigate in this way: react-native-beacons-android issue with android 6.

It seems like it is a matter of Permission.

from react-native-beacons-manager.

MacKentoch avatar MacKentoch commented on July 29, 2024

@FilipMessa good news.

I made it working on android 6 with the example without touching any byte of code.

It is really stupid simple 😮

Sorry I forgot (my Nexus phone is android 7+ since a while so I forgot about 6).

You simply just have to active location service (aka GPS) in addition to bluetooth service in android 6.

from react-native-beacons-manager.

MacKentoch avatar MacKentoch commented on July 29, 2024

I close the issues that is fixed for a while but had a doubt for android 6 not working (just active location service on android < 7).

from react-native-beacons-manager.

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.