Closed NyraSama closed 2 months ago
IOS : you need to change the createNotification() from NotificationManager.swift so prevent the notification for current day only. if you prevent "scheduleNotificationIfAuthorized()" when user is already declared for the current day, you will prevent the notification schedule for the entier week.
As reminder : IOS notification are schedule when terminating / closing the app, therefore all notification are schedule at once (unlike android waking up app to create the notification on a daily basis)
🗒️NOTES
Currently we receive a notification everyday at 9 o clock. But if we do our declaration at 8 o clock we want to not have any notification.
🏁PREREQUISITES
📜CONTEXT (User Story)
As a user
I want to receive a daily notification only if i am not already declared
In order to not forget to declare me
🪳STEPS TO REPRODUCE
🪜STEPS FOR A FIX
Kotlin Channel
Swift channel
declarations/declaredDays
.YYYY-MM-DD
to the native iOS Swift platform by using aMethodChannel
and using the methodFuture<dynamic> invokeMethod(String method, [dynamic arguments])
, and passing the list of strings inarguments
FlutterPlugin
and create afunc handle(_ call: FlutterMethodCall, result: @escaping FlutterResult)
method✅ACCEPTANCE CRITERIA
📛BLOCKERS
🟢 Waiting for #1507
🔍AFFECTED COMPONENT(S) (Scope)
⛓️LINK TO OTHER ISSUES
🪟SCREEN SHOTS & MOCKUPS