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.
-
You cannot enter foreground from background just like that. When you send the VoIP-push the app will go into background, from here you can make a local notification, from here the user has to open this notification to enter foreground. This is how Skype, Whatsapp, etc has to do it as well with their VoIP-apps. – Jan 07 '16 at 08:25
-
1Tho you can play sounds and make vibration from the background, so the local notification is easier to notice. – Jan 07 '16 at 08:26
5 Answers
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.
:)

- 1
- 1

- 607
- 5
- 25
If the app is NOT RUNNING, this is not possible without user intervention.

- 101
- 3
-
I believe that this is the correct answer. I've not answered since I don't have authoritative proof. But my reading of the Apple SDK's says that the desired behavior is not possible. – Paul Cezanne Oct 15 '15 at 23:56
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
}

- 332
- 1
- 11
-
1Hi nuridin thanks for reply but this is what we are normally doing with push notification here is different senario means my app is not in background and I receive notification it will immediately open my app. – Dhaval Oct 15 '15 at 17:48
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.

- 4,083
- 3
- 46
- 54
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

- 607
- 5
- 25