ios - 应用程序暂停时的 Ionic iOS 推送通知
问题描述
`didFinishLaunchingWithOptions` can be called and can get the notification details. With notification details, there is a URL that needs to be opened in the in-app browser. We tried our self to open the InAppBrowser in the `AppDelegate` but, can't be achieved. Is there any alternative workaround to achieve this?
为了实现这个目标,我需要自定义cordova插件,但我对Objective C很陌生。从警报正文中我可以得到URL字符串。现在,我需要从无法实现的目标 C 打开/启动科尔多瓦插件“InAppBrowser”。我在导入应用内浏览器插件后尝试了以下方法,但没有运气
代码:NSMutableDictionary *userInfo =
[launchOptionsbjectForKey:
UIApplicationLaunchOptionsRemoteNotificationKey];
if (userInfo.count>=1) {
NSDictionary *apsInfo1 = [userInfo objectForKey:@"aps"];
NSDictionary *alertData = [apsInfo1 objectForKey:@"alert"];
NSString *alertDataBody = [alertData objectForKey:@"body"];
}
I have tried the below after importing but no luck. How to open the cordova plugin features from Objective C? .
谢谢
贾瓦哈拉尔
解决方案
推荐阅读
- kubernetes-helm - Helm:coalesce.go:196:警告:不能用非表覆盖表用于 env(map [])
- java - 从后台任务将日志保存到文件系统
- reactjs - Framer:检查元素是否进入视口
- python - 如何排除特定api应用python中间件的所有授权
- c++ - 在这里,当我们比较 if(vc[i]==vc1[i]) 时,它是向量数组。实际上比较的值是多少,
- ios - 无法将“Int”类型的值转换为预期的参数类型“IndexPath”
- python - Matplotlib - 为什么我保存的动画视频是空白的?
- javascript - console.log() 不显示实际值
- image - 来自 zarr 文件的 dask 直方图(一个大 zarr 文件)
- azure - Azure Web Bot 服务重置消息传递端点