Connection to background transfer daemon interrupted/invalidated

Hi,

I'm developing an independent WatchOS application, and trying to use background URL sessions to download new content for complication update.

I think my download tasks are scheduled up appropriately, during a background refresh, following all documented guidelines from apple documentation.

Everything seems to work as intended on the simulator.

But when running on the real device (from XCode, using a self-signed certificate), the updates become quite unreliable (and the debug process is very frustrating btw).

Most of the times, the scheduled download never finishes until the app returns to foreground.

And I get the following error in the logs :

Code Block
BackgroundSession <...> connection to background transfer daemon [interrupted | invalidated]


I read that this might be due to a code signing issue. Does it mean that I have to register to an apple developer account to get it working on the real device ? (Needless to say that I'm not naturally inclined to subscribe while I'm not sure to get the app running as intended...)

Thanks a lot for any help
I do have similar problem.

Code Block
2021-04-05 01:39:37.585498+0530 SampleApp Watch Extension[25438:294683] CredStore - copyIdentPrefs - Error copying Identity cred.  Error=-25300, query={
    class = idnt;
    labl = "https://mydomainurl.com:443/";
    "r_Ref" = 1;
}
2021-04-05 01:40:37.596533+0530 SampleApp Watch Extension[25438:294699] ProxySession <F56F924A-0790-4AAA-8397-9BC12A057C72> connection to background transfer daemon invalidated


Hi @fbapple

Did you find the solution for fixing this issue?

Connection to background transfer daemon interrupted/invalidated
 
 
Q