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

Plugin waking up the app too late #31

Open
fmgomes opened this issue Mar 20, 2018 · 0 comments
Open

Plugin waking up the app too late #31

fmgomes opened this issue Mar 20, 2018 · 0 comments

Comments

@fmgomes
Copy link

fmgomes commented Mar 20, 2018

I'm using this plugin to wake up an app that could be suspended or killed, to generate an alarm at a precise time (like an alarm clock). It works almost perfectly on my phone (only failed once) but noticed that lots of times it fails in another phone (both are from Samsung and have Android 7.0 installed, but the hardware is different - A5 vs S7). I added debug messages to the app and the problem seems to be that when the app was suspended or killed (for example by the Android power manager or manually), sometimes it wakes up a bit late - in the situations I've observed the app was reactivated more than one minute after the time configured in the alarmManager (and as the app validate that it is time to alarm if it is in the correct hour and minute, it doesn't alarm in that situation). I've already checked that this plugin uses the alarmManager.setExact method if the API level is higher than 19 and verified adding debug that it is really using the setExact method. What else could be the problem?

Best regards

Fernando

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