zo0r / react-native-push-notification

React Native Local and Remote Notifications
MIT License
6.76k stars 2.05k forks source link

push message ios #1637

Open sfarkas1988 opened 4 years ago

sfarkas1988 commented 4 years ago

Question

Hey guys, I'm running out of ideas. I successfully receive a push message, but when I open the push message, it redirects me to my app and instead of onNotification: function (notification) {

I receive the following error:

2020-09-10 00:05:48.322794+0200 Find[1419:775952] SocketStream read error [0x280184780]: 1 57
2020-09-10 00:05:48.329381+0200 Find[1419:775537] [] nw_socket_handle_socket_event [C11:1] Socket SO_ERROR [9: Bad file descriptor]
2020-09-10 00:05:48.329539+0200 Find[1419:775537] [] nw_socket_get_input_frames [C11:1] recvmsg(fd 15, 1024 bytes) [57: Socket is not connected]
2020-09-10 00:05:48.329666+0200 Find[1419:775537] [] nw_socket_handle_socket_event [C19:1] Socket SO_ERROR [9: Bad file descriptor]
2020-09-10 00:05:48.329791+0200 Find[1419:775537] [] nw_socket_get_input_frames [C19:1] recvmsg(fd 20, 1024 bytes) [57: Socket is not connected]
2020-09-10 00:05:48.333 [info][tid:com.facebook.react.WebSocketExecutor][RCTInspectorPackagerConnection.m:309] Error occurred, shutting down websocket connection: Websocket exception Error Domain=NSPOSIXErrorDomain Code=57 "Socket is not connected" UserInfo={_kCFStreamErrorCodeKey=57, _kCFStreamErrorDomainKey=1}
2020-09-10 00:05:48.360328+0200 Find[1419:775537] [] nw_read_request_report [C17] Receive failed with error "Software caused connection abort"
2020-09-10 00:05:48.360612+0200 Find[1419:775537] [] nw_read_request_report [C3] Receive failed with error "Software caused connection abort"
2020-09-10 00:05:48.360733+0200 Find[1419:775537] [] nw_read_request_report [C7] Receive failed with error "Software caused connection abort"
2020-09-10 00:05:48.360926+0200 Find[1419:775537] [] nw_read_request_report [C31] Receive failed with error "Software caused connection abort"
2020-09-10 00:05:48.368517+0200 Find[1419:775537] [] nw_read_request_report [C3] Receive failed with error "Software caused connection abort"
2020-09-10 00:05:48.371381+0200 Find[1419:775537] [] nw_read_request_report [C7] Receive failed with error "Software caused connection abort"
2020-09-10 00:05:48.375533+0200 Find[1419:775537] [] nw_read_request_report [C31] Receive failed with error "Software caused connection abort"
2020-09-10 00:05:48.378 [warn][tid:com.facebook.react.JavaScript] Cannot connect to the Metro server.

Try the following to fix the issue:
- Ensure that the Metro server is running and available on the same network
- Ensure that the Metro server URL is correctly set in AppDelegate

URL: 192.168.13.129:8081

Error: The operation couldn’t be completed. Socket is not connected

I followed the instructions here and can't find the issue: https://github.com/react-native-community/push-notification-ios

Thank you in advance

zoolle commented 3 years ago

@sfarkas1988 did you managed to solve this?

OsamaHarby commented 3 years ago

i have the same issue is there is any solution ?