forked from zo0r/react-native-push-notification
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Android] Allow to set the notification to executes on idle
On Android 6.0 (API level 23) and above in order to reduce battery consumption, the system enters in Doze mode whilethe device is unused for long periods of time. While on Doze mode the AlarmManager alarms dont execute exactly on the scheduled time, they are deferred to the next maintenance window. This cause the notifications to show after their scheduled time. This change adds a new attribute `allowWhileIdle` to allow the notification to be displayed while on doze
- Loading branch information
Henrique Shiraiwa
committed
Dec 7, 2018
1 parent
ae4f9fd
commit 6cf060a
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters