改变状态,当用户在科尔多瓦的iOS通知中心选择通知
问题描述:
我试图在一个特定的消息/状态(给出一个ID)打开在iOS /离子/科尔多瓦的应用程序,当用户点击通知中心的消息推送通知。有没有办法告诉,用科尔多瓦,如果应用程序已通过通知中心拉开帷幕?
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?
答
从的文档,回调条目的通知的地步。回调里面你拨打任何电话(或变量设置),如果该应用程序已通过通知中心拉开帷幕,只可能
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