简体   繁体   English

即使应用程序未在后台运行,也可以自动打开应用程序的VoIP推送通知是否可以在iOS中使用?

[英]VoIP push notification that opens app automatically even if app is not running in background is it possible in iOS?

I want to know that if my app is not running in background and push notification arrives then my app will automatically start. 我想知道如果我的应用程序没有在后台运行并且推送通知到达那么我的应用程序将自动启动。
It is kind of emergency message that arrive and open my app even if app is not running in background. 即使应用程序没有在后台运行,它也是一种到达并打开我的应用程序的紧急消息。

Please refer this link, it is working for me 请参考此链接,它对我有用

Implement PushKit and test in development behavior 实现PushKit并测试开发行为

This link contains all steps to create VoIP notification and please note that this will work on ios 8 and above. 此链接包含创建VoIP通知的所有步骤,请注意,这将适用于ios 8及更高版本。

:) :)

如果应用程序未运行,则无法在没有用户干预的情况下进行此操作。

As i understand a question. 据我了解一个问题。 If you want to handle when notification reaches your app insert this method to appdelegate 如果您想在通知到达您的应用时处理,请将此方法插入appdelegate

- (void)application:(UIApplication *)application didReceiveRemoteNotification: (NSDictionary *)userInfo {
//notification reached. open app or do something
}

Yes It is possible. 对的,这是可能的。 You should use PushKit Voip Push notification and CallKit together. 您应该一起使用PushKit Voip Push通知和CallKit。 When notification came to device, you can show the IOS default call screen. 当通知到设备时,您可以显示IOS默认呼叫屏幕。 Then when user answer the call, open your uicontrollerview. 然后,当用户接听电话时,打开uicontrollerview。

I also want to implement same thing and I searched for this question and I got to know that this kind of facility is available in ios8 and allow us to use pushkit.frame work to do this. 我也想实现同样的事情,我搜索了这个问题,我知道ios8中提供了这种工具,并允许我们使用pushkit.frame工作来完成这项工作。 Below link is I found some what useful plz refer it and I also referring the same but I m not sure about the result ;) 下面链接是我发现一些有用的plz引用它,我也引用相同,但我不确定结果;)

https://zeropush.com/?_e_pi_=7%2CPAGE_ID10%2C9006801538 https://zeropush.com/?_e_pi_=7%2CPAGE_ID10%2C9006801538

more links to refer 更多链接参考

http://pierremarcairoldi.com/ios-8-voip-notifications/ http://pierremarcairoldi.com/ios-8-voip-notifications/

https://googleweblight.com/?lite_url=https://developer.apple.com/library/prerelease/ios/documentation/Performance/Conceptual/EnergyGuide-iOS/OptimizeVoIP.html&ei=hhTcg8du&lc=en-IN&s=1&m=559&ts=1445159916&sig=APONPFkLqEFK7BggDD1Yz9etBXBkWFLVew https://googleweblight.com/?lite_url=https://developer.apple.com/library/prerelease/ios/documentation/Performance/Conceptual/EnergyGuide-iOS/OptimizeVoIP.html&ei=hhTcg8du&lc=en-IN&s=1&m=559&ts = 1445159916&SIG = APONPFkLqEFK7BggDD1Yz​​9etBXBkWFLVew

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM