如何获取 flutter 本地通知数据?
How to get flutter local notifications data?
我正在使用 Flutter 1.17.5 开发移动应用程序。我已经使用 flutter_local_notifications 设置了 2 个通知,我需要在用户单击通知时从他们那里获取数据。我已经能够让当前用户登录并选择通知的时间,但我还需要通知发送给用户的时间以及通知是打开还是取消。我在想也许可以通过 id 获取通知,然后使用它,但我现在不知道该怎么做,所以感谢您的帮助。
Your data need to be send to Firebase or anything else. So use
Firebastore in the background. That way you'll know
everything. https://medium.com/swlh/flutter-local-notifications-and-cloud-firestore-queries-in-the-background-44a077caa5c3
这对我有用。感谢 mario francois
我正在使用 Flutter 1.17.5 开发移动应用程序。我已经使用 flutter_local_notifications 设置了 2 个通知,我需要在用户单击通知时从他们那里获取数据。我已经能够让当前用户登录并选择通知的时间,但我还需要通知发送给用户的时间以及通知是打开还是取消。我在想也许可以通过 id 获取通知,然后使用它,但我现在不知道该怎么做,所以感谢您的帮助。
Your data need to be send to Firebase or anything else. So use Firebastore in the background. That way you'll know everything. https://medium.com/swlh/flutter-local-notifications-and-cloud-firestore-queries-in-the-background-44a077caa5c3
这对我有用。感谢 mario francois