草庐IT

WCErrorCodeDeliveryFailed

全部标签

ios - WCErrorCodeDeliveryFailed : Payload could not be delivered

我正在开发一个在iPhone和AppleWatch之间共享数据的应用程序,使用WCSession方法sendMessage:replyHandler:errorHandler:执行该方法后,我得到如下错误:WCSession_onqueue_notifyOfMessageError:withErrorHandler:errorHandler:YESwithWCErrorCodeDeliveryFailed。错误=无法传送负载。importFoundationimportWatchKitimportWatchConnectivityclassResultInterfaceControll

ios - WCErrorCodeDeliveryFailed : Payload could not be delivered

我正在开发一个在iPhone和AppleWatch之间共享数据的应用程序,使用WCSession方法sendMessage:replyHandler:errorHandler:执行该方法后,我得到如下错误:WCSession_onqueue_notifyOfMessageError:withErrorHandler:errorHandler:YESwithWCErrorCodeDeliveryFailed。错误=无法传送负载。importFoundationimportWatchKitimportWatchConnectivityclassResultInterfaceControll

ios - WCSession 发送消息 :replyHandler error code 7014 (WCErrorCodeDeliveryFailed)

我有一个WatchOS2应用程序,它通过WCSession方法与iOS应用程序通信sendMessage:replyHandler:errorHandler:iOS应用程序回复正确,但有时我收到域WCErrorDomain的代码7014的错误:“无法传递有效负载”当iOS应用程序不在前台时,这种情况更常发生。我没有找到这个问题的任何解决方案,我希望你们中的一个知道这个问题的解决方案 最佳答案 在我的例子中,我必须实现两个委托(delegate):没有任何replyHandlerfuncsession(_session:WCSessi