Closed itachi1706 closed 2 years ago
Use this for scheduling notifications https://pub.dev/packages/flutter_local_notifications#scheduling-a-notification
changed time estimate to 4h
We should also add a notification debug menu that's only visible during debug mode which will allow us to send the notifications that we will be scheduling directly. This allows us to do testing for the notification
This menu will be shown in the settings page
Might look at using https://pub.dev/packages/awesome_notifications?w=1 over flutter_local_notifications as well as the former does not seem to have action buttons support
After some analysis, we might just go ahead and try out with awesome_notifications, however we will need to properly test and make sure we are able to do so. If it is not stable, we will fallback to flutter_local_notifications and make use of users tapping on the notification as the action instead of through buttons with the following link
https://pub.dev/packages/flutter_local_notifications#initialisation
The only real reason is that we do not exactly need the notifications for web, and we are not compiling for iOS nor macOS yet. Hence as long as Android works it would be perfectly fine already (web working is a benefit though). However it needs to fully support all we need to do (schedule when enabled, cancel when disabled and actually displaying the thing)
created merge request !107 to address this issue
mentioned in commit 1bf7621815b76b9f650651ae22417019ad97e1d3
mentioned in commit 699283dd7cec84ea7c16a1074874a1173d4d368b
mentioned in commit 5fe2f6de3183c23fc53dc7a8426a0d6693108c80
mentioned in commit 1b54434eb4d5c62cfd1f10d161f2926866d5b564
mentioned in commit fd1f408188eaf002ad35c3e5ee02a66f28a3d56e
mentioned in commit 6de15b0fcf37ad91f8f357af825548ea993d9db6
An option in the settings to toggle that when toggled, will inform you to do daily forum logins every day
This will be easy to calculate as it is all GMT+8, so we just have to set the reminder at 12 midnight GMT+8.
This reminder is in the form of notifications, where each notification will provide a button to launch the browser straight into the website to claim directly
Event URL: https://webstatic-sea.mihoyo.com/ys/event/signin-sea/index.html?act_id=e202102251931481&lang=en-us