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

问题描述 投票:3回答:5

我想知道如果我的应用程序没有在后台运行并且推送通知到达那么我的应用程序将自动启动。 即使应用程序没有在后台运行,它也是一种到达并打开我的应用程序的紧急消息。

ios iphone ios8 push-notification background-service
5个回答
4
投票

请参考此链接,它对我有用

Implement PushKit and test in development behavior

此链接包含创建VoIP通知的所有步骤,请注意,这将适用于ios 8及更高版本。

:)


1
投票

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


0
投票

据我了解一个问题。如果您想在通知到达您的应用时处理,请将此方法插入appdelegate

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

0
投票

对的,这是可能的。您应该一起使用PushKit Voip Push通知和CallKit。当通知到设备时,您可以显示IOS默认呼叫屏幕。然后,当用户接听电话时,打开uicontrollerview。


-1
投票

我也想实现同样的事情,我搜索了这个问题,我知道ios8中提供了这种工具,并允许我们使用pushkit.frame工作来完成这项工作。下面链接是我发现一些有用的plz引用它,我也引用相同,但我不确定结果;)

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

更多链接参考

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

© www.soinside.com 2019 - 2024. All rights reserved.