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

Selectively stopping the push notification listener or toggling the _displayInForeground for Expo Push Notifications

$
0
0

Expo Push Notification has the _displayInForeground property that can be set to allow receiving push notifications when the app in the foreground. Currently, I have the notification listener activated upon mounting the home screen, which is the very first screen.

Is there a way to either turn off the listener or toggle the _displayInForeground only when the user is in the chat screen? I don't want the push notifications for the chat messages coming in while the user is on the chat screen.


Viewing all articles
Browse latest Browse all 16750

Trending Articles



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