watchkit

Crashlytics / Fabric distribution of Watch-enabled iOS-App?

▼魔方 西西 提交于 2019-12-05 02:48:28
I sure am missing something obvious here - but no matter where I looked I found nothing to aid me here so I'll give it a try: I'm developing an (obj-c) app in wich I have integrated the Fabric / Crashlytics framework and wich I distribute to my testers via the fabulous Fabric-Site. That worked flawless for many, many versions. Now I have added AppleWatch-compatibility to my app via integration of WatchKit. All works fine. But distribution via Fabric to my beta-testers just won't work any more; The distributions site just states "You're all set for now. As soon as a new Build is ready..." and

Calories not being recorded for HealthKit Watch app

别来无恙 提交于 2019-12-05 01:01:00
I can't get any calories/activeEnergyBurned to show up in my app, and don't know why? WorkoutInterfaceController : private func totalCalories() -> Double { return totalEnergyBurned.doubleValue(for: HKUnit.kilocalorie()) } private func setTotalCalories(calories: Double) { totalEnergyBurned = HKQuantity(unit: HKUnit.kilocalorie(), doubleValue: calories) } func startQuery(quantityTypeIdentifier: HKQuantityTypeIdentifier) { let datePredicate = HKQuery.predicateForSamples(withStart: workoutStartDate, end: nil, options: .strictStartDate) let devicePredicate = HKQuery.predicateForObjects(from:

Is heart rate raw data available for developers via WatchKit?

旧城冷巷雨未停 提交于 2019-12-05 00:50:33
Is it possible to develop third party apps using Apple's WatchKit with an API for heart beat/rate data access/raw data access? Is the WatchKit SDK publicly available for developers now? Heart Rate Raw Data information is now available in Watchkit for watchOS 2.0 . WatchOS 2 includes many enhancements to other existing frameworks such as HealthKit , enabling access to the health sensors that access heart rate and health information in real-time. You could check this information in the following session which is total 30 minutes presentation.If you do not want to watch entire session, then you

WKInterfaceTimer used as a timer to countdown start and stop

别来无恙 提交于 2019-12-04 20:46:43
问题 I am trying to create a timer to countdown x minutes and y seconds. I am computing the number of seconds and creating the InterfaceTimer like this: timer.setDate(NSDate(timeIntervalSinceNow:Double(secondsValue+1))) timer.stop() after that I keep stoping it and starting it again and again, but the values are suddenly decreasing as "time(now) doesn't stop". Eg: if the timer shows :55, I start it for 3sec and stop it, it shows :52, I wait 10seconds and then start it again, it starts from :42. I

How to get sensor data from Apple Watch to iPhone?

情到浓时终转凉″ 提交于 2019-12-04 19:51:21
问题 Is there a way to get sensor data from Apple Watch? For example, how can I connect and get heart rate from Apple Watch to my app? These are the steps I need do in my app: Define a delegate to receive heart rate information from Apple Watch. Make a request to Apple Watch to send the data periodically I know how it works for other HR monitors over BT. Is the interface similar to that? Or should depend on HealthKit to achieve that? 回答1: As per WatchKit FAQ on raywenderlich.com (scroll to "Can

Apple Watch set background image

久未见 提交于 2019-12-04 19:03:28
问题 How can I programmatically set my WatchKit App background image? I need to set this in code as it changes depending on variable size and we need to place a label over the image. 回答1: It is not possible to programatically set the background image on an entire Watch App page in WatchKit... a background image for the whole page can at the current time only be set in Interface Builder it appears. However, you can set a picture as a background behind a label, and make that image fill the screen:

Dynamic Notification Interface will only work if the Watch app \ extension was opened at least once from the watch

冷暖自知 提交于 2019-12-04 18:17:40
问题 Currently there are 3 flavors of notifications in the Apple Watch: Short - You can't customize these at all. Static - You can customize these on the Storyboard. Dynamic - Can customize UI elements with new data not coming on the Notification payload. Here's the problem (The project is using Watch OS 1), if the app was never opened from the Apple Watch the Static notification will be displayed instead of the Dynamic one and the log will show the error Took too long to show custom notification.

The UIApplicationDelegate in the iPhone App never called reply

徘徊边缘 提交于 2019-12-04 17:29:44
问题 I am trying to launch my iPhone app from watch simulator using the below code : WKInterfaceController subclass [WKInterfaceController openParentApplication:[NSDictionary dictionaryWithObject:@"red" forKey:@"color"] reply:^(NSDictionary *replyInfo, NSError *error) { NSLog(@"replyInfo %@",replyInfo); NSLog(@"Error: %@",error); }]; AppDelegate.m - (void)application:(UIApplication *)application handleWatchKitExtensionRequest:(NSDictionary *)userInfo reply:(void(^)(NSDictionary *replyInfo))reply {

“Install of Apple Watch Application never finished” Error when deploying watch kit app to device

女生的网名这么多〃 提交于 2019-12-04 17:03:33
问题 So I got my new watch (yay!). I manually added its UDID to the developer portal and refreshed the provisioning profiles and I was able to push an archive to ITC for testing but now I want to run the app in debug on my watch itself. I try deploying the watch kit app target set to my phone as the device and it sits there and runs/ churns for a while and nothing happens. If I wait long enough, Xcode eventually errors with "Install of Apple Watch Application never finished" Has anyone run across

Watchkit - How to set the element one below other in Group

…衆ロ難τιáo~ 提交于 2019-12-04 16:26:46
问题 I am working on the watchkit app and I want to create a table row with an image and two labels where the labels are one below the other, like this: I tried the position options in interface builder, but no luck. The labels are always on the same line: I want the x-coordinate same for both. Please help. 回答1: At first, drag a Group onto the interfaceController, then change the Layout property of that group to Vertical : Then drag the Labels in that group and set their properties accordingly: If