Reactjs React Native中的Internet推送通知
当用户在断开连接后连接到internet时,即使应用程序已关闭,我如何使应用程序发送通知?您可以使用Reactjs React Native中的Internet推送通知,reactjs,react-native,push-notification,cross-platform,react-notifications,Reactjs,React Native,Push Notification,Cross Platform,React Notifications,当用户在断开连接后连接到internet时,即使应用程序已关闭,我如何使应用程序发送通知?您可以使用“@react native community/netinfo”library检查internet是否已连接,在此基础上,您可以使用react native push notificationlibrary配置推送通知 供参考 好的,我建议根据您的要求使用提醒通知用户互联网是否丢失或恢复。感谢您的回复。我要检查一下,我想使用推送通知,因为我需要在应用程序关闭时使用推送通知。
“@react native community/netinfo”
library检查internet是否已连接,在此基础上,您可以使用react native push notification
library配置推送通知
供参考
好的,我建议根据您的要求使用提醒通知用户互联网是否丢失或恢复。感谢您的回复。我要检查一下,我想使用推送通知,因为我需要在应用程序关闭时使用推送通知。