diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index d140377..348083b 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -112,6 +112,15 @@
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths" />
+
+
+
+
+
+
+
+
+
diff --git a/lib/managers/notifications.dart b/lib/managers/notifications.dart
index 6fe9926..126efdf 100644
--- a/lib/managers/notifications.dart
+++ b/lib/managers/notifications.dart
@@ -97,6 +97,7 @@ class NotificationClass {
tz.TZDateTime.from(scheduledTime, tz.getLocation(currentTimeZone));
if (time.difference(tz.TZDateTime.now(tz.getLocation(currentTimeZone))) <
Duration.zero) return;
+ print("scheduled notification for time " + time.toString());
await notifsPlugin.zonedSchedule(
id, title, description, time, platformChannelSpecifics,
androidAllowWhileIdle: true,
@@ -148,10 +149,11 @@ class NotificationClass {
"The task '" + task.title + "' is due.",
notificationsPlugin,
task.dueDate!,
- currentTimeZone,
+ await FlutterTimezone.getLocalTimezone(),
platformChannelSpecificsDueDate,
id: task.id,
);
+ print("scheduled notification for time " + task.dueDate!.toString());
}
}
print("notifications scheduled successfully");