改变状态,当用户在科尔多瓦的iOS通知中心选择通知 [英] Change State when User Selects Notification from iOS Notification Center in Cordova

查看:238
本文介绍了改变状态,当用户在科尔多瓦的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

这篇关于改变状态,当用户在科尔多瓦的iOS通知中心选择通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆