Question by
andersemil · Jul 18, 2017 at 01:04 PM ·
iospush notificationnotificationservices
How to detect if push notification is launched from lock screen or received in-app
Hello, Our iOS app is set up to receive push notifications. It's working great, except for one thing: We have code to show a custom banner notification inside Unity when we receive a remote notification while the app is running; however, the same code also detects a remote notification when app is launched by touching the notification on the lock screen of the device. So my question is, is there any way to detect if a remote notification was received while the app was in the background or before it was launched?
Comment