ankidroid / ankidroid/Anki-Android

Review reminders: migration

未关闭
#21,755 6 条评论 0 个 reaction 已指派 1 人 已被 @ericli3690 认领 在 GitHub 查看
Advanced Reminders
主要语言
Kotlin
星标
11.8k
派生
2.9k
平均合并
2 天 3 小时
30 天内合并 PR
171

描述

How do we want to perform the migration from the old notification system to the new review reminders? How fast should the switch-over be? Do we want it to be opt-in / simply increase the visibility of the feature flag for a few weeks? Do we just unilaterally migrate everyone from the old system the the new one in a single update, and ensure that we test it properly in alpha and beta?

We should create some migration code that detects if the old notification settings are on (via `PreferenceUpgradeService`). For example, if "Notify when: more than 10 cards due" is selected, then a review reminder for all decks with a card trigger threshold of 10 should be created when the app is loaded up with the new update for the first time. We can ignore migrating the old `vibrate` and `blink light` settings, as we've decided to let the OS handle those.

Finally, we should delete the old legacy notifications code (anything annotated with `LegacyNotifications`, `NotificationFragment`, etc.).

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。