I tried this: Detect if the app was launched/opened from a push notification
But the difference is that I have set the key content-available = 1
which means that the didReceiveRemoteNotification
event is always executed not only when it is played in the notification center. How can I distinguish when the notification center or icon app is triggered?