XPEHO / YAKI

Working localization declaration app
BSD 3-Clause "New" or "Revised" License
13 stars 1 forks source link

Fix / Notification - Prevent notification if user is already declared or has set absence #1508

Open NyraSama opened 3 months ago

NyraSama commented 3 months ago

🗒️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.

In order to achieve this result, we expose native methods that we will create in Swift and Kotlin

scheduleNotification{Platform}(timestamp, title, message) // timestamp: string ISO8601

We then schedule two months worth of notifications from flutter, when the app is launched, or when a new declaration occured.

🏁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

Swift

Kotlin

✅ACCEPTANCE CRITERIA

📛BLOCKERS

🟢 It seems that we miss an Apple computer to be able to do the iOS part. => Loucas will help us 🟢 Waiting for #1507 Done 🟢 Waiting for #1438

🔍AFFECTED COMPONENT(S) (Scope)

⛓️LINK TO OTHER ISSUES

🪟SCREEN SHOTS & MOCKUPS