Post

Replies

Boosts

Views

Activity

Reply to WCSessionDelegate
my extension in apple watch extension ExtensionDelegate:WCSessionDelegate{          func session(_ session: WCSession, activationDidCompleteWith activationState: WCSessionActivationState, error: Error?) {     }                    func session(_ session: WCSession, didReceiveMessage message: [String : Any]) {              print("received data: (message)")       if let value = message["iPhone"] as? String {//**7.1          // self.label.setText("(message)")           WKuserdefautls.set(value, forKey: "id")       }                  if let valueQR = message["QRPath"] as? String {//**7.1             //self.label.setText("(message)")             WKuserdefautls.set(valueQR, forKey: "QRPath")         }                  if let usermail = message["usermail"] as? String {//**7.1                          WKuserdefautls.set(usermail, forKey: "usermail")         }                  if let userid = message["userid"] as? String {//**7.1                      WKuserdefautls.set(userid, forKey: "userid")         }                  if let userphone = message["userphone"] as? String {//**7.1                     WKuserdefautls.set(userphone, forKey: "userphone")         }                  if let username = message["username"] as? String {//**7.1                      WKuserdefautls.set(username, forKey: "username")         }                  if let usersurname = message["usersurname"] as? String {//**7.1             WKuserdefautls.set(usersurname, forKey: "usersurname")         }     }   }
Feb ’22
Reply to WCSessionDelegate
In my iPhone APP tappedButton(){ if let validSession = self.session, validSession.isReachable {//5.1                             let data: [String: Any] = ["iPhone": User_permitions.id! as Any] // Create your Dictionay as per uses                                                          let dataQR: [String: Any] = ["QRPath": User_permitions.personal_OR_path! as Any]                                                          let datauserid: [String: Any] = ["userid": User_permitions.personal_ID! as Any]                             let datausername: [String: Any] = ["username": User_permitions.name! as Any]                             let datausersurname: [String: Any] = ["usersurname": User_permitions.surname! as Any]                             let datausermail: [String: Any] = ["usermail": User_permitions.eamil! as Any]                             let datauserphone: [String: Any] = ["userphone": User_permitions.phone! as Any]                                                                                       //validSession.transferUserInfo(data)                            // validSession.transferUserInfo(dataQR)                          validSession.sendMessage(data, replyHandler: nil, errorHandler: nil)                          validSession.sendMessage(dataQR, replyHandler: nil, errorHandler: nil)                                                          validSession.sendMessage(datauserid, replyHandler: nil, errorHandler: nil)                             validSession.sendMessage(datausername, replyHandler: nil, errorHandler: nil)                             validSession.sendMessage(datausersurname, replyHandler: nil, errorHandler: nil)                             validSession.sendMessage(datausermail, replyHandler: nil, errorHandler: nil)                             validSession.sendMessage(datauserphone, replyHandler: nil, errorHandler: nil)                                                   } }
Feb ’22
Reply to Image in WatchKit
Error Log from real device 2022-02-15 08:09:19.814542+0100 WatchAppQR Extension[987:557750] [connection] nw_endpoint_fallback_get_timeout_nanos [C1 amc.radimambroz.cz:443 waiting fallback (unsatisfied (Path was denied by NECP policy), interface: en0, ipv4, fallback: {interface: ipsec0, agent: AB2583A1-8D31-40EE-9621-955B3A43F825, weak, generation: 2592)] No RTT information for fallback interface, will use a default value 200ms 2022-02-15 08:09:20.243082+0100 WatchAppQR Extension[987:557750] Connection 1: received failure notification 2022-02-15 08:09:20.243984+0100 WatchAppQR Extension[987:557750] Connection 1: failed to connect 1:50, reason -1 2022-02-15 08:09:20.244115+0100 WatchAppQR Extension[987:557750] Connection 1: encountered error(1:50) 2022-02-15 08:09:20.285431+0100 WatchAppQR Extension[987:557755] Error getting network data status Error Domain=NSPOSIXErrorDomain Code=19 "Operation not supported by device" 2022-02-15 08:09:20.285795+0100 WatchAppQR Extension[987:557755] Task <69AB4258-A674-4EDB-8FF4-554CEC249F0E>.<0> HTTP load failed, 0/0 bytes (error code: -1009 [1:50]) 2022-02-15 08:09:20.286523+0100 WatchAppQR Extension[987:557754] NSURLConnection finished with error - code -1009 2022-02-15 08:09:20.334845+0100 WatchAppQR Extension[987:557750] Connection 2: received failure notification 2022-02-15 08:09:20.334924+0100 WatchAppQR Extension[987:557750] Connection 2: failed to connect 1:50, reason -1 2022-02-15 08:09:20.334947+0100 WatchAppQR Extension[987:557750] Connection 2: encountered error(1:50) 2022-02-15 08:09:20.345489+0100 WatchAppQR Extension[987:557754] Task .<0> HTTP load failed, 0/0 bytes (error code: -1009 [1:50]) 2022-02-15 08:09:20.345637+0100 WatchAppQR Extension[987:557754] NSURLConnection finished with error - code -1009
Feb ’22
Reply to Keychain delete not work
I work with IOS 15, IpadOS 15, WatchOS 8.5. The application works by passing information for verification from the iPhone to the Watch via a keychain. But I need the event to delete data from the KeyChain, which is synchronized with Icloud. I use the application primarily on the iPhone, here does not work deleting or updating the Keys in the keychain. Thanks you for your help.
Feb ’22