2

使用NotificationServiceLister,我检索pendingIntent通知。现在我想将它pendingIntent作为一个对象存储到任何离线数据库中,realm, greendao, sqlite, ormLite, active android等等。这可能吗?如果可以的话,那怎么办???或者有没有其他方法可以找到pendingIntent任何特定通知的?

4

1 回答 1

0

而不是保存pendingIntent对象。您可以将唯一的通知 ID 存储到数据库中。单击Notification活动将启动,您可以在其中提取notification id并通过将其与本地数据库进行比较来查看单击了哪个通知。

于 2017-10-13T16:26:50.270 回答