Avoid the alert when my app receives a local notification while in background
-
27-10-2019 - |
Question
Is there a way to avoid displaying the initial alert when my app receives a local notification while in the background or closed?
I want the local notification to go directly to AppDelegate method, bypassing any alert. Is this possible?
Basically, I want my app to run a certain code on the reception of the Local Notification, without needing any user action.
Solution
No, that's not possible. Local or remote notifications cannot launch apps (or bring them to the foreground) without user interaction.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow