Dhaval
Dhaval

Reputation: 56

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.

Upvotes: 4

Views: 2610

Answers (5)

Savas Adar
Savas Adar

Reputation: 4262

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.

Upvotes: 0

iDeveloper
iDeveloper

Reputation: 627

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.

:)

Upvotes: 4

iDeveloper
iDeveloper

Reputation: 627

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

Upvotes: -1

kmiosdev
kmiosdev

Reputation: 101

If the app is NOT RUNNING, this is not possible without user intervention.

Upvotes: 1

nuridin selimko
nuridin selimko

Reputation: 342

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
}

Upvotes: 0

Related Questions