Launch App through Push Notification

I'm currently facing a quite common problem when it comes to opening the App when it's in background or killed.
I've already searched allot and tried diffrent "solutions" but nothing worked for me. So as last chance I'm asking here.


I will develop an App which should alarm specific users, so that the app listens for incoming notifications, shows the user the App with the nessesary information and alert him so that he realizes he got alerted. In Android it's quite easy to program but on iOS i despair.


Currently I send the Notification with Firebase (FCM) but I also tried to work with PushKit to process the Notification even if the app is killed. This works quite well, but i still can't launch my App after receiving this Notification or playing any alert (which ignores the silent mode) so that the user can react.


I know that e.g. Whatsapp handles this when calling someone but I tink that this works also with CallKit (does it?).


So is there a way to open my App (no matter which way) through Push Notification or PushKit so that i can show the User the important information or can I maybe use CallKit just to show information?


I would be pleased if someone could help me or just give me some tipps.

So is there a way to open my App (no matter which way) through Push Notification or PushKit so that i can show the User the important information …

There is no way for an app to yank itself from the foreground to the background [1]. The user is always in control of that layer switch. The standard approach here is to post a local notification, which makes it easy for the user to bring the app to the front.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

[1] And, speaking personally, I’m pretty happy about that.

Launch App through Push Notification
 
 
Q