How can I make the app to send a notification when the user connected to the internet after being disconnected even when the app is closed?
Asked
Active
Viewed 379 times
1 Answers
0
You can use "@react-native-community/netinfo"
library to check whether the internet is connected or not and based on that you can configure the push notification using react-native-push-notification
library.
Click here for the reference!
Well I will recommend to use the alerts to notify the user wether the internet is lost or back based on your requirement.

Dipan Sharma
- 1,114
- 7
- 17
-
Thanks for your response gonna check it, I wanted to use push notification because I needed when the app is closed. – Ciya May 16 '21 at 13:04