-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Listening beacons in background doesn't work after 1 minute #167
Comments
Which version of react native are you using? |
Tested with 0.59.9 and 0.60.4 on different projects, same result. This may be related to authorization. 1 minute is for Xiaomi Note 7. On another phone I have 2 minutes. We need a solution to keep the listener working in background in long term. |
Can you upload the code? Because I'm using 0.61.4 or 0.60.4 version of RN, and when I call the function startRangingBeaconsInRegion the application closes its self. May be since the version 0.60 something doesn't work in the right way. In the version 0.59 works for me. |
Using the example on this repository:
I have the same result with Monitoring a specific beacon UID also. |
I tested your code and it works well. |
Issue founded, this problem is due to battery saver present on many devices, more informations: |
It's working for me in android but not work in IOS, my react native version is 0.61.5 |
@Kranysys @sankar9659 @GiacomoMasi Are you able to scan the iBeacons using this library? |
Hi,
I did a project using this library (I think in 2017). I don't know how this
library changes nowadays.
I suggest you follow the code of the docs page and try to work with a
simple example, and then add new features.
Giacomo
Il giorno gio 27 lug 2023 alle ore 06:57 Srikanth Enuguru <
***@***.***> ha scritto:
… @Kranysys <https://github.com/Kranysys> @sankar9659
<https://github.com/sankar9659> @GiacomoMasi
<https://github.com/GiacomoMasi> Are you able to scan the iBeacons using
this library?
If yes could you please share your code or help me in fixing this issue
<#266>.
—
Reply to this email directly, view it on GitHub
<#167 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIBP3B4SYCHCVZQWSP7Y6PLXSHYKZANCNFSM4JQC6P7A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I turned off Power Saving mode and now my Android can detect beacons in the background too. |
Version
1.0.1
Platform
Android
OS version
Android 9.0
Expected behavior
Listening the beacons after one minute when the app is in background.
Actual behavior
When the application is in background, it works perfect before 1 minute, then, the library doesn't detect any beacons.
The listener still working like there is no beacon detected.
The text was updated successfully, but these errors were encountered: