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.

Was it helpful?

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
scroll top