I am building react-native application using OneSignal library. When the app is opened via push notification, I want to make some additional steps before all of the app's logic: I don't want to render initial screen, I want to delay hiding splash screen, etc. That is why I need to detect whether the app was opened via push notification or not. So I could behave in a different ways. Push notification libraries provide callbacks that fire when notifications are opened, but there is no way to detect when they are called: by that time my initial screen can be already rendered, splash screen can be already hidden, etc.
I'm building both iOS and Android apps. I've found a similar question, but it covers only iOS case.