Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs React Native中的Internet推送通知_Reactjs_React Native_Push Notification_Cross Platform_React Notifications - Fatal编程技术网

Reactjs React Native中的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配置推送通知 供参考 好的,我建议根据您的要求使用提醒通知用户互联网是否丢失或恢复。感谢您的回复。我要检查一下,我想使用推送通知,因为我需要在应用程序关闭时使用推送通知。

当用户在断开连接后连接到internet时,即使应用程序已关闭,我如何使应用程序发送通知?

您可以使用
“@react native community/netinfo”
library检查internet是否已连接,在此基础上,您可以使用
react native push notification
library配置推送通知

供参考


好的,我建议根据您的要求使用提醒通知用户互联网是否丢失或恢复。

感谢您的回复。我要检查一下,我想使用推送通知,因为我需要在应用程序关闭时使用推送通知。