繁体   English   中英

当应用程序进入后台或绘制通知面板时,Xamarin iOS api 调用突然失败

[英]Xamarin iOS api call fails suddenly when app goes to background or notification panel drawn

In Xamarin iOS, when the api call starts requesting, when we switch app to background or the notification panel is drawn from the top, suddenly api call fails. Api 返回错误请求。前台调用没有问题。 这在 android 中不会发生。 api 调用将在后台成功。 DidEnterBackground方法命中时,api 调用将失败。我使用的是 iOS OS 13.6 设备。 Forms 有最新版本。请帮忙...

在 iOS 构建设置中,将 HttpClient 实现选项从 NSUrlSession 更改为 Managed 解决了这个问题!!!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM