Reputation: 24892
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
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