Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须实现一个提醒 - 做笔记,然后将其存储在本地数据库中,然后在时间到来时发出通知。我没有移动开发经验,所以我想问什么更好 - 实现一些时间管理器,它会立即调用通知或“按原样”存储通知以让它们自己激活。什么是好方法?
编辑:我忘了提到,我使用 Xamarin 并且我已经实现了跨平台通知,但现在的问题是选择正确的方式来存储和处理它们
在数据库中使用AlarmManager、记录您的title、message或提醒的详细信息。触发警报时,查询您的数据库以获取通知的标题和消息并显示它。
AlarmManager
title
message
链接:
服务 (AlarmManager)
通知