简体   繁体   中英

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

This link contains all steps to create VoIP notification and please note that this will work on ios 8 and above.

:)

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

As i understand a question. If you want to handle when notification reaches your app insert this method to 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. When notification came to device, you can show the IOS default call screen. Then when user answer the call, open your 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. 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 ;)

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

more links to refer

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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