Skip to content

Commit

Permalink
Use a more aggressive wakelock
Browse files Browse the repository at this point in the history
- This ensures timely firing when using an autoLaunch receiver.
  • Loading branch information
timkellypa committed Apr 11, 2020
1 parent 9aa59c1 commit 43f788b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/TriggerReceiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private void wakeUp(Context context) {
if (pm == null)
return;

int level = PowerManager.PARTIAL_WAKE_LOCK;
int level = PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP | PowerManager.ON_AFTER_RELEASE;

PowerManager.WakeLock wakeLock = pm.newWakeLock(level, "LocalNotification");

Expand Down

0 comments on commit 43f788b

Please sign in to comment.