Reputation: 56
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
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
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
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/
Upvotes: -1
Reputation: 101
If the app is NOT RUNNING, this is not possible without user intervention.
Upvotes: 1
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