question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

5 minutes is not configurable in setWakeUpAlarm

See original GitHub issue

Hello, right now the time between wake up alarms can’t be less than 5 minutes:

    // wake up time will be the maximum of 5 minutes, the scan period, the between scan period         long milliseconds = 1000l * 60 * 5; /* five minutes */

Is there a reason for this particular value? Can you probably make it configurable?

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
yankeppeycommented, May 14, 2015

I think the purpose of the wake up alarm is to ensure that device continues to scan beacons periodically even being in sleep mode. Right now, as I got it, there are three cases:

  • foreground mode (i.e. at least one activity is in resumed state) - device scans beacons with period defined by foregroundBetweenScanPeriod, using handler to post delayed scans
  • background mode (all activity are in paused state) - device scans beacons with period defined by backgroundBetweenScanPeriod, using handler to post delayed scans
  • sleep mode (user turned off the screen, no wake locks are hold) - everything stops, device wakes up and scans beacons every 5 minutes (that value is hardcoded). And the last case is pretty common - the most of the time the phone sleeps in user’s pocket. I want the phone to vibrate-notify if the user comes in area of a particular beacon, that provides, for example, some deal/discount, and 5 minutes is pretty long period for this (user can go though the whole beacon area without any notification). Please correct me if I’m wrong somewhere.
0reactions
pollux-commented, Jun 4, 2015

@davidgyoung Thanks for your response… If you got anything regarding that, please keep me posted. I really appreciate that…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use Bedtime to track your sleep on your iPhone - Apple Support
The first time you set a bedtime, the Clock app asks you a few questions: Open the Clock app and tap the Bedtime...
Read more >
12 Things You Didn't Know You Could Do with Philips Hue ...
12 Things You Didn't Know You Could Do with Philips Hue Smart Bulbs ; 1. Set a wake-up alarm. Set wake-up alarm with...
Read more >
Set and manage alarms and media alarms - Google Nest Help
Alarms will sound for 10 minutes if not stopped or snoozed. You can turn off a timer and general or media alarms without...
Read more >
How to set alarms on iPhone or iPad - iMore
But no one uses an actual alarm clock anymore, right? ... Swipe up and down on the picker to select hour, minutes, and...
Read more >
How To Set, Add And Use iPhone Alarms In iOS 14
Tap the orange '+' icon, available in the top-right corner of the screen. ... A: iPhone alarms will snooze for 9 minutes, not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found