Post not yet marked as solved
Is it possible to get the Y location and height on screen of the Digital Crown? I capture the crownDidRotate event to perform my own actions, and want to show my own visual indicator next to the crown, like the one that comes up with you scroll a list. I could hard code the values based on the watch model, just wondered if there was a way to get this programmatically so I don't have to update it for newer models if the location changes. Thanks
Post not yet marked as solved
I am building a Navigation App for watchOS (Apple Watch only App) that works offline, only by using GPS.
The user can choose a saved GPS location and navigate to it. If the user selects a location, he will see the direction and distance to the selected GPS location. If he doesn't need the navigation anymore, he can stop it.
I have already built this part, but here is my problem.
If the App is not showing a navigation, it should leave the screen after 2 minutes (or after the time that is specified in settings). If the App is navigating, it should stay on the screen. This is the same behavior that Apple Maps has.
Can anyone help me how I can do this?
Thanks in advance
Simon
My app has a Siri Shortcut that works fine when I execute it from the Shortcuts app on my watch, but if I try to activate it by voice, Siri says: "Sorry, something's wrong. Please try again." and then a second later says "We've had a problem. Please try again."
I'm currently on watchOS 8 beta 6. I last tested this in early July with beta 2 or beta 3 and it was working at that time. I haven't made any changes to the intent extension since then.
The shortcut activates fine by voice on my phone, running iOS 15 beta 6. I'm also able to execute other Shortcuts by voice on my watch.
Has anyone else run into this before? Is there a way to debug the intent extension on the watch, so I can see if any of my intent handler code is even being called?
Hi Eskimo,
Hope you are doing well!!
I had implemented similar approach mentioned in [https://developer.apple.com/forums/thread/77694] in one of my projects works perfectly fine in mobile application. However, found that the same fails in watchOS .
When try to hit server from watchOS wearable app following error is displayed.
CredStore - copyIdentPrefs - Error copying Identity cred. Error=-25300, query={
class = idnt;
labl = "https://customeendpointurl:443/";
"r_Ref" = 1;
}
When I made following change in the project,
[configuration.urlCredentialStorage = nil ]
I can see no error.However, api's didn't hit server though.
Thanks in advance.
Post not yet marked as solved
I have successfully created a complication in Large text for the modular face which creates a countdown timer. However, when the countdown gets to 0, it starts to count up. This is similar to a timer in storyboard where you need to stop the timer or it counts up. However, I can't find a method to stop the time from counting up in a complication.
I have tried to use the getTimelineEntriesForComplication function to create a new template after the countdown finishes to show 00:00, however, it doesn't seem to work.
Has anyone successfully created a countdown complication in which it stops at 0? If so, how did you complete that task.
Post not yet marked as solved
Is it possible to share data/settings between an iPhone app and a standalone WatchOS app? Or have the watch app connect to the iOS app to send messages if available? I know how to do it the old way, but I'm moving my Watch app to be standalone and don't see how to communicate or share settings. Thanks
Post not yet marked as solved
So this is the first time I'm trying to code an app and I'm running into the issue that my outlet is showing on the wrong scene.
What I want: A button that, when pressed, goes into a table view where the 5 fruits in my array are listed. But right now I can't connect the button to the "buttonTapped" function
Post not yet marked as solved
Hello!
What is the best way to test CloudKit on WatchOS. I've come up against the following issues:
CloudKit cannot be tested on WatchOS on the Simulator as iCloud is not available Is this still correct?
I'm running iOS 15 beta 7 (19A5337a) and WatchOS 7.6.1 (18U70) with XCode Version 13.0 beta 5 (13A5212g). However when I attempt to run the app on the Watch device, I get an error message "Failed to prepare device for development." and the app cannot be run.
Given the above, neither the watch simulator nor the physical device are available to test CloudKit.
Does the emulator create only heart rate and steps data? Does it create blood pressure or oxygen saturation data?
Post not yet marked as solved
Hello,
I have a dependent Apple Watch App and SKProductRequest doesn't return products on watchOS 8 beta. On WatchOS 6 and 7 it's fine, so the IAP setup is fine.
The function "func productsRequest(_ request: SKProductsRequest, didReceive response: SKProductsResponse)" is called, but in the response all products are returned in the response.invalidProductIdentifiers and not in the response.products where they should be.
Anybody seeing the same issue?
I have a watch app which is receiving location updates every second, so it is being executed in the background even if the wrist is down. I thought this would qualify the app to update the user interface every second, but it is not working. I set a breakpoint where the user interface is updated, and the code is being executed but I get no update in the user interface. I have tested this both in the simulator and in the device.
Should this work with an app which gets locations updates? I thought it would make sense for an app like this.
The app is written in objective-C if that makes it any different.
Thank you.
Hey,
I am building a watch only application which contains some api requests to be integrated such that data should be shown. I am using the apple watch se and I have turned on the wifi in the watch. But when I am making an api request for example,
Guess I am trying to display a list and inorder to obtain that list I am required to make an api call from the watch app itself and I have written the required code.
There are 4 different scenarios I tested and these are the results
IPhone wifi on, watch wifi on - works
IPhone wifi on, watch wifi off - works
IPhone wifi off, watch wifi on - doesn't work
Both switched off - doesn't work
1,2,4 can be accepted. But I am not sure why 3 is not working. I tested the app store in the watch as well following the above 4 scenarios and still the results are same. So my hypothesis is that it's the behavior of the watch. But i am not sure the reason why 3. is not working since I am making a standalone app and the watch supports wifi or internet connection why can't we directly pull data via the watch internet connectivity? Please someone who can elaborate the reason will be greatly appreciated.
Thanks in advance!
Post not yet marked as solved
Today I downloaded the final version of xCode for recompiling and submission to the app store. On my subsequent app upload I get errors for the new Apple Watch Series 7 icons.
66px size
92px size
102px size
234px size
I've tried everything with many different icon re-sizers to correct the problem. The icons should not have an alpha channel which they don't.
Anybody HELP!
Post not yet marked as solved
In Swift there is a UIScreen.main.brightness = 1.0. But I couldn't find anything similar in SwiftUI. I need to adjust brightness in my watch os app. Is it even possible? Thanks in advance
Need complication sizes:
Example:
https://developer.apple.com/design/human-interface-guidelines/watchos/overview/complications/
https://developer.apple.com/documentation/clockkit/clkcomplicationtemplategraphiccircularimage
FB9632184 filed
Post not yet marked as solved
Hi
I wanted ask about one type of apple watch gestures.
Can it detect if your palm is covering the touch surface? Like if one was to use the watch as a buzzer where you tap the screen with your open palm instead of your finger. Also if it can detect how long your flat palm is on the watch touch surface, like if your cover the watch with your palm and take if off then a random picture is generated upon release.
I want to get into iOS app development and wanted to make a buzzer. Not asking about finger touches or taps, I am sure that those gestures elaborate and extensive.
Post not yet marked as solved
Hi
I'm working on the app for sleep analysis and positional therapy. Based on accelerometer and gyroscope it defines in which position user is sleeping and sends vibration to prevent sleeping on right side.
The question is how to run it for an 8 hours ?
There are 1 hour limitation for WKExtendedRuntimeSession, so it is not an option. For background mode "sleep analysis" doesn't fit to available categories: workout, audio, etc.
There are apps in AppStore that works over a night (e.g. SensorLog), so it looks like a possible thing to do.
Post not yet marked as solved
Notification center delegate is firing for local notifications but not remote, when using UNTextInputNotificationAction on a WKUserNotificationInterfaceController.
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void)
I get a response when the user enters text and submits, but only for a local notification. For the remote notification - the delegate method never fires. The notification delegate is a singleton that's assigned in the watch's ExtensionDelegate's applicationDidFinishLaunching method.
Post not yet marked as solved
I am a model 11 and watch 6 user. Recently, my watch battery ran out and I couldn't perform some of my operations. A few days after this incident, I saw that the same company's watch could be charged with the phone of our competitor company, and this situation surprised me. I am very sorry that we do not have the same feature. Can you please do some work so that we can use this feature for us?
Post not yet marked as solved
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.