Comments (15)
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
andandroid 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.
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.
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 region
argument, 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.
@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.
@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.
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)
- Android: No scanning when app is killed HOT 6
- ld: library not found for -lRNiBeacon HOT 1
- Thread 6: signal SIGABRT / use_native_modules! skipped the react-native dependency 'react-native-beacons-manager'. No podspec file was found. HOT 1
- Error in gradle HOT 1
- Android build fails - Could not find method compile() for arguments [directory 'libs'] HOT 3
- Error : App not detecting bluetooth on Android 12 HOT 4
- Execution failed for task ':app:checkDebugDuplicateClasses'. HOT 1
- Could not find method compile() for arguments HOT 2
- Why package needs permission for NSLocationWhenInUseUsageDescription? HOT 1
- Fetch Beacons while app is not running HOT 2
- Fork that works up to RN 69.7 HOT 3
- How detect all iBeacons around me ? HOT 2
- App crashed and i dont know why + stacktrace
- App throws an error after run initial with a minimal example HOT 26
- A problem occurred evaluating project ':react-native-beacons-manager'. HOT 1
- XPC connection invalid HOT 2
- Unable to detect the beacons HOT 9
- Question: Why does the app need authorization right at the start? HOT 1
- beacon detection issue HOT 2
- Could not find org.altbeacon:android-beacon-library HOT 2
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 react-native-beacons-manager.