Skip to content

Commit 9f4d30a

Browse files
fix deprecated notification androidAllowWhileIdle
1 parent 6863dc0 commit 9f4d30a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/common/services/notifications.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ class NotificationHelper {
9595
'Sudah waktunya untuk $title',
9696
convertTime(hour, minutes),
9797
getDetails(sound, title),
98-
androidAllowWhileIdle: true,
98+
// androidAllowWhileIdle: true,
99+
androidScheduleMode: AndroidScheduleMode.exactAllowWhileIdle,
99100
uiLocalNotificationDateInterpretation: UILocalNotificationDateInterpretation.absoluteTime,
100101
matchDateTimeComponents: DateTimeComponents.dateAndTime,
101102
payload: 'It could be anything you pass',

0 commit comments

Comments
 (0)