Apple Watch

RSS for tag

Discuss hardware-specific topics related to Apple Watch.

Posts under Apple Watch tag

200 Posts

Post

Replies

Boosts

Views

Activity

Apple Watch (waiting for first unlock) in Xcode
I'm continuously getting this message in Xcode and I can't run my app on my Apple Watch. I'm running the latest versions of everything. I have tried to restart my Mac, my iPhone, my Watch. I tried to unpair and pair it back. Nothing is working. I also updated Xcode to 14.0.1 RC and that didn't help. How can I get this working? We're unable to do any work on our Watch App without this working. Thanks
28
13
17k
Jun ’23
How to wake to the last activity on apple watch
Hi there, I'm trying to figure out how to make my app always on top when waking the apple watch, just like the native Workout app does. I've noticed the official guidance for users to enable this behavior, but how can I introduce it into my own app? Any answers will be appreciated! Reference to apple support: https://support.apple.com/en-sg/guide/watch/apd748b87e2a/watchos -> Wake to your last activity
0
0
626
Jun ’23
Independent Apple Watch app can't connect to Internet.
My device is Apple Watch Series 5. It only support wifi. When I was debug in real machine. It can't connect to internet. The app is independent. But the system app can connect to internet. Why? Why? Why? And How to solve. code : let session = URLSession.shared     let task: URLSessionDataTask = session.dataTask(with: URLRequest(url: URL(string: "https://www.baidu.com/s?wd=iOS")!)) { [self] (data, response, error) in       if data == nil {                   print(error.debugDescription)       }     }     task.resume() error message : Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <FD086BDC-3051-469F-9280-0054CC8F0488>.<1>, NSLocalizedDescription=The Internet connection appears to be offline., _kCFStreamErrorCodeKey=50, _NSURLErrorRelatedURLSessionTaskErrorKey=(   "LocalDataTask <FD086BDC-3051-469F-9280-0054CC8F0488>.<1>",   "LocalDataPDTask <FD086BDC-3051-469F-9280-0054CC8F0488>.<1>",   "LocalDataTask <FD086BDC-3051-469F-9280-0054CC8F0488>.<1>" ), NSErrorFailingURLStringKey=https://www.baidu.com/s?wd=iOS, _kCFStreamErrorDomainKey=1, NSErrorFailingURLKey=https://www.baidu.com/s?wd=iOS})
3
0
1.7k
Jun ’23
Device selection on Apple Pay in-app provisioning
Hi, I work in a fintech company that offers support to Apple Pay in our cards, i.e. our users have the option add their cards to Apple Pay using our app (in-app provisioning). Our company already got the proper In-App provisioning entitlements from Apple and the entire in-app provisioning process is working as expected. When an user taps on the button "Add to Apple Wallet" in our app to provision his card, we call the following code below: let config = PKAddPaymentPassRequestConfiguration() config.cardholderName = "\(firstName) \(lastName)" config.localizedDescription = "MyApp Card" config.primaryAccountSuffix = String(cardSuffix) config.paymentNetwork = .visa /* Present the Apple Pay ViewController */ let controller = PKAddPaymentPassViewController(requestConfiguration: config, delegate: self) UIApplication.shared.delegate?.window??.rootViewController?.present(controller!, animated: true) If the user has an Apple Watch paired, he is greeted with a screen asking him to select on which device he wants to add the card: on his iPhone or on the Apple Watch (please see the following screenshot: imgur.com/a/MSQPnt8 - After the user selects the device, the provisioning process continues successfully as expected. However, if the user taps on the "Add to Apple Wallet" button and he already has the card added to one of the devices (the Apple Watch, for example), then the code above is called again, but he is once again greeted with the same screen asking him to select on which devices he wants to add the card, on his iPhone or on his Apple Watch, even though the card is already added on the Apple Watch. The way I understand it, since the card is already added on the Apple Watch, only iPhone should appear as a valid option to have the card added. Is there anything else that I need to do in the code above to make sure only the available devices (I mean, only the devices that don't have the card added on Apple Pay yet) are listed in the device selection? Thanks
6
1
4.2k
Jun ’23
Real Bluetooth Range(Distance) from watch to watch ?
Hi, I'm trying to make a watch app that transfer data watch to watch(or iOS). (Not for backup) So, I looked up for core bluetooth feature. It was a nice and kind document. However, I bumped in to a problem that might cause a severe flaw in my project, which is.. the distance (range) that the apple watch can reach to another one. I googled it and found out 33 feet would be the limit range of bluetooth 4.0 (or 5.0 whatever). BUT, when I google just "bluetooth 4.0 and 5.0 range", the range was way over the distance mentioned, like 10 times way further. Some say up to 100m (330 feet), other say 60m (200feet). So If is there anyone who tested the real range of bluetooth working via watch to watch?? Well.. thank you for reading my post, and I hope anyone can answer me! :)
1
0
2.2k
Jun ’23
How can independent App make URL session requests through iPhone Proxy?
I have tried URL session requests in the following three ways: Proxy through iPhone: Request failure "ErrorDomain =NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." Connecting to a known network: Request successful Connecting using cellular data: Request successful These tests were all conducted on the Apple Watch Series 6 watchOS 9.4. Does "watch-only App "not support URL session request through iPhone Proxy? Here is my current URL session request handler: let config = URLSessionConfiguration.ephemeral config.waitsForConnectivity = true config.requestCachePolicy = .reloadIgnoringLocalCacheData config.urlCache = nil config.allowsCellularAccess = true config.allowsConstrainedNetworkAccess = true config.allowsExpensiveNetworkAccess = true let session = URLSession(configuration: config, delegate: nil, delegateQueue: .main) let task = session.dataTask(with: url) { (data, response, error) in guard error == nil else { print(error!) self.error = "\(error!)" return } } task.resume() Info.plist <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSAllowsLocalNetworking</key> <true/> </dict>
1
1
939
May ’23
waiting for first unlock in Xcode
I have tried several times to restart all the devices or turn off turn on developer mode, but continuing getting "waiting for first unlock" in Xcode. The Xcode version is 14.2 with ios 16.0. I tried to work with the older version of iOS 15 and Xcode13, but it failed with "new watch new ios version at 16.0". Does anyone know how can I get this working? Thanks
2
2
1.6k
May ’23
Networking error on Independent Apple Watch Apps
I created a project with "watch-only App" template in XCode, running on Apple Watch Series 6, the console output network error: ErrorDomain =NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." However, It works fine on the Apple watch Ultra. I try the following: I added the following code, but doesn't work. configuration.allowsCellularAccess = true configuration.waitsForConnectivity = true Tried using the Alamofire framework, but it didn't work. import Alamofire var body: some View { VStack { Text("hello world") .task { URLCache.shared.removeAllCachedResponses() AF.request("https://api.thecatapi.com/v1/images/search?limit=1").response { response in print( response) } } } } Turn off the Wi-Fi and Bluetooth of the mobile phone. The Watch Series 6 can successfully request through Wi-Fi. But that's not an option. I can't ask my users to turn off Wi-Fi and Bluetooth before using my app. Here is my code: VStack { Text("hello world") } .onAppear { guard let url = URL(string: "https://api.thecatapi.com/v1/images/search?limit=1") else { print("Invalid URL") self.error = "Invalid URL" return } let dataTask = URLSession.shared.dataTask(with: url) {(data, response, error) in guard error == nil else { print(error) return } print(data) } dataTask.resume() } What can I do? My Apple Watch Series 6 version is watchOS 9.0. I noticed when lauching my app first time on the Apple Watch Series 6. It doesn't ask for 'allow "Settings" to use wireless data’.But I was asked about it on the Apple Watch Ultra.
4
1
1.6k
May ’23
Accelerometer in Apple Watch, WatchOS
Hello 👋🏼 I would like to create my own Apple Watch app for workouts. I would like to count the number of repetitions of the exercise that I do for example (squat). But my watch is going to sleep. And when the device goes into sleep mode, the counter stops counting, and I wanted to ask. Does the accelerometer run in the background so that it counts the number of squats in the background? What can you recommend ?
0
0
746
May ’23
Apple watch series 8 haptic won't work
I have bought apple watch series 8 yesterday and I realized that it's haptic vibration does not work. Every settings seems to be right. I don't know what is the problem. I searched a lot on the web and tested almost every possible OS solutions but none of them helped me. May be a hardware problem? Could anyone help me to solve this problem? Watch os version is 9.4(latest version at this time)
2
0
1.4k
Apr ’23
Drawing UIImage with perspective on Apple Watch
I have an Apple Watch app (Swift), and I need to draw a UIImage with perspective, preferably into a new UIImage (see example below). The best way Apple provides is by performing a transform on UIView. Unfortunately, UIView is NOT available in WatchKit. Does anyone know how this can be accomplished? I've been searching for weeks, but have not found a solution. CoreImage seems to have promise, but parts of it are not available in WatchKit.
3
0
1.1k
Apr ’23
Is there a way to get extra time to finish tasks in the WatchOS background?
In the Watch app, press the digital crown to go to the home screen, or the app enters the background state and tries to save the current data to iCloud. However, in this case, you may not be able to save to iCloud. In my opinion, the Watch app doesn't seem to be given any extra time to finish tasks once it enters the background. Is there any way I can do a little bit of extra background work to get things done? In the case of a background session, the system starts the app at an unspecified time after the app enters the background, so I decided that it was not particularly necessary in my case. It would be nice to be able to finish the work within 30 minutes while entering the background state, but I can't find a suitable way.
0
0
1.2k
Apr ’23
TestFlight Crashes While Installing App on Apple Watch
Hi all! I'm facing an issue with new update of TestFlight, 3.3.0, where the TestFlight app itself crashed when trying to install the companion Apple Watch app. When "Show app on apple watch" is switched on in the TestFlight app, TestFlight crashes. App cannot be installed through the Watch app either. Anyone else facing this issue?? Prior to the update the same version of my app was able to be installed easily.
14
1
2.2k
Apr ’23
Is there a way to know if an App is supported on the paired Apple Watch?
We would like to tell a user that we have an Apple Watch app in our iOS app but we don't want to uses that have an Apple Watch paired that is not supported. We can look at WCSession.default.isPaired to know that some kind of watch is paired, and we can use WCSession.default.isWatchAppInstalled to know that our app is not installed on the watch. Although we want to know if the watch is even supported. Example: A user has an Apple Watch Series 3 paired, but our app only supports watchOS 9. How do we avoid telling that user about an our app that they are not even able to install on that watch?
0
0
861
Apr ’23
Apple Watch (waiting for first unlock) in Xcode
I'm continuously getting this message in Xcode and I can't run my app on my Apple Watch. I'm running the latest versions of everything. I have tried to restart my Mac, my iPhone, my Watch. I tried to unpair and pair it back. Nothing is working. I also updated Xcode to 14.0.1 RC and that didn't help. How can I get this working? We're unable to do any work on our Watch App without this working. Thanks
Replies
28
Boosts
13
Views
17k
Activity
Jun ’23
How to wake to the last activity on apple watch
Hi there, I'm trying to figure out how to make my app always on top when waking the apple watch, just like the native Workout app does. I've noticed the official guidance for users to enable this behavior, but how can I introduce it into my own app? Any answers will be appreciated! Reference to apple support: https://support.apple.com/en-sg/guide/watch/apd748b87e2a/watchos -> Wake to your last activity
Replies
0
Boosts
0
Views
626
Activity
Jun ’23
Developer mode on Apple Watch
How to enable developer mode on Apple Watch with watchOS 9 beta?
Replies
7
Boosts
2
Views
13k
Activity
Jun ’23
Independent Apple Watch app can't connect to Internet.
My device is Apple Watch Series 5. It only support wifi. When I was debug in real machine. It can't connect to internet. The app is independent. But the system app can connect to internet. Why? Why? Why? And How to solve. code : let session = URLSession.shared     let task: URLSessionDataTask = session.dataTask(with: URLRequest(url: URL(string: "https://www.baidu.com/s?wd=iOS")!)) { [self] (data, response, error) in       if data == nil {                   print(error.debugDescription)       }     }     task.resume() error message : Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask &lt;FD086BDC-3051-469F-9280-0054CC8F0488&gt;.&lt;1&gt;, NSLocalizedDescription=The Internet connection appears to be offline., _kCFStreamErrorCodeKey=50, _NSURLErrorRelatedURLSessionTaskErrorKey=(   "LocalDataTask &lt;FD086BDC-3051-469F-9280-0054CC8F0488&gt;.&lt;1&gt;",   "LocalDataPDTask &lt;FD086BDC-3051-469F-9280-0054CC8F0488&gt;.&lt;1&gt;",   "LocalDataTask &lt;FD086BDC-3051-469F-9280-0054CC8F0488&gt;.&lt;1&gt;" ), NSErrorFailingURLStringKey=https://www.baidu.com/s?wd=iOS, _kCFStreamErrorDomainKey=1, NSErrorFailingURLKey=https://www.baidu.com/s?wd=iOS})
Replies
3
Boosts
0
Views
1.7k
Activity
Jun ’23
[WatchOS] WKHapticType
Hello, I tried to use the new underwaterDepthPrompt and underwaterDepthCriticalPrompt with WKInterfaceDevice.current().play(_:) without any success on my A2157/WatchOS 9.5.1 (others are working perfectly). Is it normal?
Replies
1
Boosts
0
Views
930
Activity
Jun ’23
Device selection on Apple Pay in-app provisioning
Hi, I work in a fintech company that offers support to Apple Pay in our cards, i.e. our users have the option add their cards to Apple Pay using our app (in-app provisioning). Our company already got the proper In-App provisioning entitlements from Apple and the entire in-app provisioning process is working as expected. When an user taps on the button "Add to Apple Wallet" in our app to provision his card, we call the following code below: let config = PKAddPaymentPassRequestConfiguration() config.cardholderName = "\(firstName) \(lastName)" config.localizedDescription = "MyApp Card" config.primaryAccountSuffix = String(cardSuffix) config.paymentNetwork = .visa /* Present the Apple Pay ViewController */ let controller = PKAddPaymentPassViewController(requestConfiguration: config, delegate: self) UIApplication.shared.delegate?.window??.rootViewController?.present(controller!, animated: true) If the user has an Apple Watch paired, he is greeted with a screen asking him to select on which device he wants to add the card: on his iPhone or on the Apple Watch (please see the following screenshot: imgur.com/a/MSQPnt8 - After the user selects the device, the provisioning process continues successfully as expected. However, if the user taps on the "Add to Apple Wallet" button and he already has the card added to one of the devices (the Apple Watch, for example), then the code above is called again, but he is once again greeted with the same screen asking him to select on which devices he wants to add the card, on his iPhone or on his Apple Watch, even though the card is already added on the Apple Watch. The way I understand it, since the card is already added on the Apple Watch, only iPhone should appear as a valid option to have the card added. Is there anything else that I need to do in the code above to make sure only the available devices (I mean, only the devices that don't have the card added on Apple Pay yet) are listed in the device selection? Thanks
Replies
6
Boosts
1
Views
4.2k
Activity
Jun ’23
Real Bluetooth Range(Distance) from watch to watch ?
Hi, I'm trying to make a watch app that transfer data watch to watch(or iOS). (Not for backup) So, I looked up for core bluetooth feature. It was a nice and kind document. However, I bumped in to a problem that might cause a severe flaw in my project, which is.. the distance (range) that the apple watch can reach to another one. I googled it and found out 33 feet would be the limit range of bluetooth 4.0 (or 5.0 whatever). BUT, when I google just "bluetooth 4.0 and 5.0 range", the range was way over the distance mentioned, like 10 times way further. Some say up to 100m (330 feet), other say 60m (200feet). So If is there anyone who tested the real range of bluetooth working via watch to watch?? Well.. thank you for reading my post, and I hope anyone can answer me! :)
Replies
1
Boosts
0
Views
2.2k
Activity
Jun ’23
How can independent App make URL session requests through iPhone Proxy?
I have tried URL session requests in the following three ways: Proxy through iPhone: Request failure "ErrorDomain =NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." Connecting to a known network: Request successful Connecting using cellular data: Request successful These tests were all conducted on the Apple Watch Series 6 watchOS 9.4. Does "watch-only App "not support URL session request through iPhone Proxy? Here is my current URL session request handler: let config = URLSessionConfiguration.ephemeral config.waitsForConnectivity = true config.requestCachePolicy = .reloadIgnoringLocalCacheData config.urlCache = nil config.allowsCellularAccess = true config.allowsConstrainedNetworkAccess = true config.allowsExpensiveNetworkAccess = true let session = URLSession(configuration: config, delegate: nil, delegateQueue: .main) let task = session.dataTask(with: url) { (data, response, error) in guard error == nil else { print(error!) self.error = "\(error!)" return } } task.resume() Info.plist <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSAllowsLocalNetworking</key> <true/> </dict>
Replies
1
Boosts
1
Views
939
Activity
May ’23
waiting for first unlock in Xcode
I have tried several times to restart all the devices or turn off turn on developer mode, but continuing getting "waiting for first unlock" in Xcode. The Xcode version is 14.2 with ios 16.0. I tried to work with the older version of iOS 15 and Xcode13, but it failed with "new watch new ios version at 16.0". Does anyone know how can I get this working? Thanks
Replies
2
Boosts
2
Views
1.6k
Activity
May ’23
Networking error on Independent Apple Watch Apps
I created a project with "watch-only App" template in XCode, running on Apple Watch Series 6, the console output network error: ErrorDomain =NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." However, It works fine on the Apple watch Ultra. I try the following: I added the following code, but doesn't work. configuration.allowsCellularAccess = true configuration.waitsForConnectivity = true Tried using the Alamofire framework, but it didn't work. import Alamofire var body: some View { VStack { Text("hello world") .task { URLCache.shared.removeAllCachedResponses() AF.request("https://api.thecatapi.com/v1/images/search?limit=1").response { response in print( response) } } } } Turn off the Wi-Fi and Bluetooth of the mobile phone. The Watch Series 6 can successfully request through Wi-Fi. But that's not an option. I can't ask my users to turn off Wi-Fi and Bluetooth before using my app. Here is my code: VStack { Text("hello world") } .onAppear { guard let url = URL(string: "https://api.thecatapi.com/v1/images/search?limit=1") else { print("Invalid URL") self.error = "Invalid URL" return } let dataTask = URLSession.shared.dataTask(with: url) {(data, response, error) in guard error == nil else { print(error) return } print(data) } dataTask.resume() } What can I do? My Apple Watch Series 6 version is watchOS 9.0. I noticed when lauching my app first time on the Apple Watch Series 6. It doesn't ask for 'allow "Settings" to use wireless data’.But I was asked about it on the Apple Watch Ultra.
Replies
4
Boosts
1
Views
1.6k
Activity
May ’23
Get Water Depth in Apple Watch Ultra
How can the water depth measurement be accessed from the new Apple Watch Ultra?
Replies
6
Boosts
2
Views
2.1k
Activity
May ’23
Accelerometer in Apple Watch, WatchOS
Hello 👋🏼 I would like to create my own Apple Watch app for workouts. I would like to count the number of repetitions of the exercise that I do for example (squat). But my watch is going to sleep. And when the device goes into sleep mode, the counter stops counting, and I wanted to ask. Does the accelerometer run in the background so that it counts the number of squats in the background? What can you recommend ?
Replies
0
Boosts
0
Views
746
Activity
May ’23
NFC reading with Apple Watch
Dear development team, it would be fantastic to be able to make smart automations by using NFC stickers with Apple Watch. This would make things much more easier if there are situations where you don't want to use Siri. Would be great to get a feedback.
Replies
4
Boosts
3
Views
3k
Activity
Apr ’23
Ringtones for call and notifications for Apple Watch
Hopefully we can assign ringtones to Apple Watch? So we can set ringtones to calls and contacts aswell as ringers for iMessage.
Replies
0
Boosts
0
Views
379
Activity
Apr ’23
Apple watch series 8 haptic won't work
I have bought apple watch series 8 yesterday and I realized that it's haptic vibration does not work. Every settings seems to be right. I don't know what is the problem. I searched a lot on the web and tested almost every possible OS solutions but none of them helped me. May be a hardware problem? Could anyone help me to solve this problem? Watch os version is 9.4(latest version at this time)
Replies
2
Boosts
0
Views
1.4k
Activity
Apr ’23
Drawing UIImage with perspective on Apple Watch
I have an Apple Watch app (Swift), and I need to draw a UIImage with perspective, preferably into a new UIImage (see example below). The best way Apple provides is by performing a transform on UIView. Unfortunately, UIView is NOT available in WatchKit. Does anyone know how this can be accomplished? I've been searching for weeks, but have not found a solution. CoreImage seems to have promise, but parts of it are not available in WatchKit.
Replies
3
Boosts
0
Views
1.1k
Activity
Apr ’23
Is there a way to get extra time to finish tasks in the WatchOS background?
In the Watch app, press the digital crown to go to the home screen, or the app enters the background state and tries to save the current data to iCloud. However, in this case, you may not be able to save to iCloud. In my opinion, the Watch app doesn't seem to be given any extra time to finish tasks once it enters the background. Is there any way I can do a little bit of extra background work to get things done? In the case of a background session, the system starts the app at an unspecified time after the app enters the background, so I decided that it was not particularly necessary in my case. It would be nice to be able to finish the work within 30 minutes while entering the background state, but I can't find a suitable way.
Replies
0
Boosts
0
Views
1.2k
Activity
Apr ’23
TestFlight Crashes While Installing App on Apple Watch
Hi all! I'm facing an issue with new update of TestFlight, 3.3.0, where the TestFlight app itself crashed when trying to install the companion Apple Watch app. When "Show app on apple watch" is switched on in the TestFlight app, TestFlight crashes. App cannot be installed through the Watch app either. Anyone else facing this issue?? Prior to the update the same version of my app was able to be installed easily.
Replies
14
Boosts
1
Views
2.2k
Activity
Apr ’23
How to create custom .watchface file from Xcode ?
Hi, I want to create my own custom watchface. And want to add that watchface to iPhone device watch app. Is it possible using Xcode and swift ? If not, please provide us a way to create custom watch face file. And how can I add date, time and animation on that watch face. Please guide me.
Replies
2
Boosts
1
Views
2.9k
Activity
Apr ’23
Is there a way to know if an App is supported on the paired Apple Watch?
We would like to tell a user that we have an Apple Watch app in our iOS app but we don't want to uses that have an Apple Watch paired that is not supported. We can look at WCSession.default.isPaired to know that some kind of watch is paired, and we can use WCSession.default.isWatchAppInstalled to know that our app is not installed on the watch. Although we want to know if the watch is even supported. Example: A user has an Apple Watch Series 3 paired, but our app only supports watchOS 9. How do we avoid telling that user about an our app that they are not even able to install on that watch?
Replies
0
Boosts
0
Views
861
Activity
Apr ’23