Change State when User Selects Notification from iOS Notification Center in Cordova

亡梦爱人 提交于 2019-11-30 19:10:22

问题


I'm attempting to open an iOS/Ionic/Cordova app at a specific message/state (given an ID), when a user clicks on a message push notification in the notification center. Is there a way to tell, using Cordova, if the app has been opened through the notification center?


回答1:


From the docs, the callback is the point of entry for your notification. Any calls you make (or variables you set) inside the callback will only be possible if the app has been opened through the notification center



来源:https://stackoverflow.com/questions/28507469/change-state-when-user-selects-notification-from-ios-notification-center-in-cord

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!