0
votes

I am using Xcode 11.3.1. I wants to make an iOS and watchOS app using swift5. I understand we need to use WatchConnectivity class to send and receive data using message but, my concern is that how do we send data when Apple Watch is far from iphone. Assuming it's cellular and wifi both but still i need solution to get data from apple watch to iphone.

I wants to store those collected data from apple watch to iphone's local db by using realm.

1

1 Answers

0
votes

It's only sendMessage(_:replyHandler:errorHandler:) and sendMessageData(_:replyHandler:errorHandler:) that require reachability, the other methods dequeue data once Apple Watch comes within range of the paired iPhone. If you need to transfer data while the devices are out of range and can depend on a watchOS network connection, look into the URL Loading System or CloudKit.