cfischer
cfischer

Reputation: 24892

Avoid the alert when my app receives a local notification while in background

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.

Upvotes: 0

Views: 225

Answers (1)

Ole Begemann
Ole Begemann

Reputation: 135540

No, that's not possible. Local or remote notifications cannot launch apps (or bring them to the foreground) without user interaction.

Upvotes: 1

Related Questions