Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Is there a way to detect whether the app was opened via push notification? (React-native)

$
0
0

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.


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>