当应用程序在后台或关闭时,收到的推送通知会转到顶部栏(通知中心)。
稍后,点击一条通知将打开应用程序,并调用该特定消息的onNotification回调。在iOS中,getDelievedNotifications返回一个包含所有挂起数组的数组。
如何在Android中做到这一点?
谢谢。
(编辑:我正在使用https://github.com/zo0r/react-native-push-notification)
发布于 2018-03-28 11:17:20
您可以使用这个库- https://github.com/zo0r/react-native-push-notification
奇怪的是,这个库支持Android上的重复通知,而react原生基础库支持IOS设备上的重复通知。
https://stackoverflow.com/questions/49525046
复制相似问题