What is the proper way to show notifications of the message's received from mqtt/websockets when app is running in the background or when app is closed using react native.
So far I have achieved to show notifications when app is in the foreground using react-native-paho-mqtt as mqtt client and react-native-push-notification for showing notifications