Open page from notification after app loads

Hi guys,

I am using OneSignal Api to send and receive notifications, but when I tap in the notification and want to redirect the user to the right post. I had all the info that I need to redirect to the post and works fine if the app is active.

	 	.handleNotificationOpened(Actions.OneSignal.notificationOpenedCallback)
		.handleNotificationReceived(Actions.OneSignal.notificationReceivedCallback)

But the problem is when the app is not active I have to set a timeout and wait to the app load and them redirect. I was wondering if there is a clean way to redirect after the app loads.

Thanks

Don’t know the One Signal API, but such callbacks usually must be fired when app becomes active (after you tap on notification), or maybe there are such callbacks in addition