apple-watch

How can I edit top status bar at AppleWatch?

我是研究僧i 提交于 2019-12-22 08:10:50
问题 I'm beginning with WatchKit and I would like to know hoy to edit the aspect of topbar in a AppleWatch app. I would like to change the color and also to hide it in some of my views because I want to focus my user to perform one action. Thanks! 回答1: It is impossible to edit the status bar appearance. There are some strong restrictions: Status bar cannot be hidden There are not ability to modify the black background You cannot add or modify the back button or another image The only thing you can

How can I avoid the error “Error Launching 'AppName' WatchKit Extension” when trying to build and run a WatchKit Extension on an actual Apple Watch?

廉价感情. 提交于 2019-12-22 05:38:09
问题 When I try to build and run a WatchKit extension on my real Apple Watch, I sometimes get the following error message: I've tried to build the parent application for the iPhone and then again for my WatchKit app but I still get the error message. Does anyone know what causes this error message and how to deal with it? 回答1: This seems to happen when it takes a long time to install the WatchKit App on the actual watch and Xcode times out waiting for the process to start due to the long install

Launch Watch App into middle view

瘦欲@ 提交于 2019-12-22 04:45:10
问题 Basically, my app is laid out in the page format and I would like it to launch into the middle of the three pages. There is no way of setting a previous page segue, so I have been trying to do it in code. I have the main view set to the first view, and I have tried a variety of methods to segue to the middle view as soon as the app is launched. Here is the two ways I tried: if segueCheck == true { self.pushControllerWithName("budget", context: self) self.presentControllerWithName("budget",

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

守給你的承諾、 提交于 2019-12-22 03:48:09
问题 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

Is heart rate raw data available for developers via WatchKit?

你说的曾经没有我的故事 提交于 2019-12-22 03:39:22
问题 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? 回答1: 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

Display iPhone local notification in Apple Watch

萝らか妹 提交于 2019-12-21 22:25:07
问题 I'm trying to display local notifications in Apple Watch. The implementation is done but I don't know how to pass local notifications to Apple Watch. How can I do this? 回答1: If your iOS app supports local or remote notifications, Apple Watch displays those notifications at appropriate times. iOS it self decide to pass the notification to Apple Watch or show on iPhone, As you said the implementation is done so let the iOS handle it. and at this time you have to do nothing to pass it to Watch

Running SpriteKit Game in watchOS on Apple Watch Simulator (xCode 8, Swift 3, iOS 10) - libswiftSwiftOnoneSupport Error

人盡茶涼 提交于 2019-12-21 19:55:58
问题 I downloaded xCode 8.0 beta and opened a recent project written in swift 2 which I then converted to swift 3 using xCode. I then added a watchOS target to my project with the setting "game" File > New > Target: I checked the GameScene.swift in the WatchExtension and sure enough all the code is there and sets up a scene: import SpriteKit class GameScene: SKScene { private var spinnyNode : SKShapeNode? override func sceneDidLoad() { if let label = self.childNode(withName: "//helloLabel") as?

openParentApplication only works when the app is running in the foreground

会有一股神秘感。 提交于 2019-12-21 17:52:12
问题 I'm trying to request data from the server by using openParentApplication and use it in the watch extension, but I don't get anything back when the main app is not running in the foreground. When the main app is running in the foreground everything works fine. 回答1: I had this issue before and the reason was that you haven't registered long running background operation and the system kill it. This is how I sorted this, please see comments for explanations, this is all in AppDelegate file and

Is it possible to trigger a haptic feedback without the accompanying sound on apple Watch OS 2

陌路散爱 提交于 2019-12-21 14:38:26
问题 Assuming the user has not muted their watch sounds. Is it possible for an apple watch app to trigger a haptic feedback (i.e vibrate) without the accompanying sound. This is different than receiving a notification which is handled automatically by the watch. In this case I'm invoking the haptic feedback using a watch app. like this: [[WKInterfaceDevice currentDevice] playHaptic:WKHapticTypeClick]; 回答1: There is a hacky way to do so. You can start to play WKAudioFilePlayer right before haptic

Is it possible to trigger a haptic feedback without the accompanying sound on apple Watch OS 2

旧街凉风 提交于 2019-12-21 14:37:21
问题 Assuming the user has not muted their watch sounds. Is it possible for an apple watch app to trigger a haptic feedback (i.e vibrate) without the accompanying sound. This is different than receiving a notification which is handled automatically by the watch. In this case I'm invoking the haptic feedback using a watch app. like this: [[WKInterfaceDevice currentDevice] playHaptic:WKHapticTypeClick]; 回答1: There is a hacky way to do so. You can start to play WKAudioFilePlayer right before haptic