Search code examples
iosxcodepush-notificationruntime-errorswift5

iOS app gives errors if it goes to the background & comes back"nw_read_request_report [C3]Receive failed with error"Software caused connection abort"


The issue on the app is that once the user goes to the background and comes back to the app, it gives a few errors like in the attached image.

enter image description here

These errors do arise when the user clicks on a push notification as well.

Tried changing and removing pods, their versions and everything but nothing seems to be working. This happens when I run the app on the physical device and not on the simulator.

Hope you guys could help me on this issue.


Solution

  • This error is related with network requests that are killed during backgrounding. Similar problem was described in Alamofire issues.