I am using both local and push notification in my app and i receive notification for both in background and foreground but i just want to receive only local notification in foreground.
Asked
Active
Viewed 147 times
1 Answers
0
You must threat application state in didReceiveRemoteNotification and use UIApplicationState (can be .active in Swift or UIApplicationStateActive in Objective-C for example) see documentation apple docs

ares777
- 3,590
- 1
- 22
- 23