Open Overtorment opened 2 years ago
screenshots from bugsnag:
@Overtorment, thanks for the feedback! iOS has a very special way of dealing with sockets when an app is in the background, which may be the root cause of this issue. A temporary workaround would be to close all sockets when the app is going to the background. I will take a look at your error trace and improve the module error handling for this kind of situations.
I will close this issue as soon as this problem is fixed.
@Overtorment, could you tell me if you are using an HTTPS connection and if you are sending data when the app is in the background?
yes, connection is https. as for background, network module is not aware of such thing. i.e. state change is not handled in any way (at least not in the networking module)
Same crash,Do you have a solution
@liuguanlin, I am sorry but I was not able to reproduce this issue. Could you create a minimal reproducible code example?
@liuguanlin, I am sorry but I was not able to reproduce this issue. Could you create a minimal reproducible code example?
Bugly collected it, but I didn't reproduce it myself
I've the same issue also on iOS
I have same issue.
@Rapsssito Could you please check?
@Rapsssito for reproducing this issue you need:
I managed to reliably reproduce the above issue
Not 100% sure if it's a related issue, but I managed to get a NSInvalidArgumentException on the TCP server by repeatedly connecting and disconnecting to a TCP server from another TCP socket
Description
I once experienced a crash when my app was in the background for a while, and I opened so it tried to go to foreground. I immediately looked up our crash report on bugsnag:
Steps to reproduce
Steps to reproduce the behavior:
Screenshots If applicable, add screenshots to help explain your problem.
Relevant information
ios 15.0
0.64.2
5.3.1