
I am using oneSignal for push notification, Now days what is happening whenever app is running in background and user is tapping on the notification. App delegate function didFinishLaunching method is not getting called?

I am using oneSignal for push notification, Now days what is happening whenever app is running in background and user is tapping on the notification. App delegate function didFinishLaunching method is not getting called?
If app is open and you click on push,
didFinishLaunchingwill never get called... at this timedidReceiveRemoteNotificationwill get called, so implement below.