Skip to content
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

SecureRegion only works when UUID, Major and Minor are all null? #127

Closed
emaddoma opened this issue Oct 15, 2015 · 5 comments
Closed

SecureRegion only works when UUID, Major and Minor are all null? #127

emaddoma opened this issue Oct 15, 2015 · 5 comments

Comments

@emaddoma
Copy link

Perhaps I'm doing this wrong, but I can't monitor a SecureRegion when I specify any of the three parameters.

beaconManager.startMonitoring(new SecureRegion("One", UUID.fromString("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"), 100, 18800)); // this does not work
beaconManager.startMonitoring(new SecureRegion("Two", UUID.fromString("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"), 100, null)); // this does not work
beaconManager.startMonitoring(new SecureRegion("Three", UUID.fromString("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"), null, null)); // this does not work
beaconManager.startMonitoring(new SecureRegion("Four", null, null, null)); // this works
@emaddoma
Copy link
Author

So it appears the flip mode interferes with beacon monitoring. I turned it off and was able to see my beacons just fine. Incidentally, I've found flip mode to be very inconsistent and problematic on iOS as well, but not this bad. Seems like you guys need some QA.

@wiktor
Copy link
Contributor

wiktor commented Oct 15, 2015

Can you elaborate on that?

1/ "flip mode" - do you mean Flip To Sleep mode? When beacon is upside down is stops broadcasting?
2/ How was looking your setup?

@emaddoma
Copy link
Author

Yes, Flip to Sleep mode was suspect. I turned off Flip to Sleep and began seeing entry and exit events in my app. Then they disappeared again, so I jacked the setBackgroundScanPeriod up to once per second for both scan and wait and they came back. Now I'm trying Flip to Sleep mode again to see if it wasn't the setBackgroundScanPeriod defaults.

@emaddoma
Copy link
Author

So it seems it wasn't the Flip to Sleep mode. The default background scan period is not working for me at all, though. Setting it to a rather frequent value (1 seconds scanning, 6 waiting) seems to be the only way I get reliable entry and exit events on my device (Nexus 5). A waiting period of any longer than 8 seems to render the SDK useless.

@wiktor
Copy link
Contributor

wiktor commented Oct 19, 2015

We will be tomorrow releasing SDK with probable fix to your issue. I'll notify this ticket once it is done.

@wiktor wiktor closed this as completed in 9f7b4e1 Oct 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants