App getting paused while downloading files using file transfer plugin in iOS

Hi,
In my app I use file transfer plugin to download images and json datas. I am getting the following error in console:

May 24 09:18:39 iPhone xxx(CFNetwork)[754] : Received XPC error Connection interrupted for message type 3 kCFNetworkAgentXPCMessageTypePACQuery
May 24 09:18:39 iPhone xxx(CFNetwork)[754] : Received XPC error Connection invalid for message type 3 kCFNetworkAgentXPCMessageTypePACQuery

Downloading gets paused after getting this error and the app gets stuck.

Sometimes I also get the following error also:

May 24 06:33:35 iPhone xxx(CFNetwork)[1143] : TIC TCP Conn Cancel [19:0x17419bd40]
May 24 06:33:35 iPhone xxx(CFNetwork)[1143] : TIC TCP Conn Destroyed [19:0x17419bd40]

How to solve this issue?

Any suggestion is appreciable.

Thanks.

Use HttpClient to download images … file transfer is deprecated.