简体   繁体   中英

Internet Push Notification In React Native

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM