adi narayana
adi narayana

Reputation: 13

How to detect push notification if app is in background in ios app?

1.Push notification delegate methods are calling when app is in background in swift 3

2 if app is in foreground push notification delegate methods are calling.

3.Is it possible if app is in background to detect push notifications?

Upvotes: 0

Views: 1615

Answers (1)

Andrea
Andrea

Reputation: 26383

Push notification are managed by the system if your app is killed or in background.
The only kind of push that can wake up your app is a "silent push notification".
This explained inside Apple documentation, if you need to trigger some long task in background after receiving one of them, just remember to create a background task. Check also this link.

Upvotes: 1

Related Questions