react-native-ldk icon indicating copy to clipboard operation
react-native-ldk copied to clipboard

Channel `is_usable` is false after app goes into background (tcp socket disconnects)

Open tanx opened this issue 2 years ago • 0 comments

iOS disconnects tcp connections every time the app goes to the background. This causes the channel is_usable to go false. Perhaps one solution would be for the react-native module to detect this on the swift layer and reconnect the tcp socket when the app goes back into the foreground? The other solution would be to restart the node in the app layer when the app goes back into the foreground. See also the discord discussion here: https://discord.com/channels/915026692102316113/1029436229684580443/1030049187091451965

tanx avatar Oct 13 '22 13:10 tanx