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

Feature Request: Delay transition to background mode #717

Open
davidgyoung opened this issue Aug 2, 2018 · 0 comments
Open

Feature Request: Delay transition to background mode #717

davidgyoung opened this issue Aug 2, 2018 · 0 comments

Comments

@davidgyoung
Copy link
Member

Expected behavior

It is often desired for Apps to continue scanning after transition to the background to the extent allowed by the operating system, especially on Android 8+ where background scanning (without a foreground service) is limited to once every 15 minute job scheduler events.

Actual behavior

When using BackgroundPowerSaver, The library stops scanning at foreground rates immediately after the app goes to the background, causing scans to be delayed for up to 15 minutes on Android 8+, even though the operating system would allow scans for up to 10 minutes after transitioning to the background.

Steps to reproduce this behavior

Run the reference app on an Android 8 device, go to the ranging screen, put the app to the background. Ranging updates immediately stop.

Mobile device model and OS version

Any

Android Beacon Library version

2.15

Proposal

Add a configurable delay in switching to background scan periods after the app is put to the background. On Android 8+ up to 10 minutes of background running time is allowed, so this delay could be up to 10 minutes. This would address #666

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

1 participant