apple-watch

apple watch http request

三世轮回 提交于 2019-12-06 10:27:57
问题 Using import, I can use this module for iPhone, but not for apple watch app.I also want to use this library for writing apple watch app. Is it possible? If possible, how? Can you please provide an alternative if it is not possible? Thanks beforehand Simple example of http request for iPhone import Alamofire Alamofire.request(.GET, requestUrl, headers: self.headers(), encoding:.JSON).responseJSON { (rJ) -> Void in let data = rJ.result.value let err = rJ.result.error } 回答1: Sample Http request

Play Video From URL in WatchOS 2

半腔热情 提交于 2019-12-06 10:13:20
问题 So recently Apple® released the second operating system for their Apple Watch®. With this update, Apple Watch® can now have HTTP requests and internet connection by itself. They added the WKInterfaceMovie Which loads a video from a url with the method " - setMovieURL: Declaration (New in watchOS 2.0) SWIFT func setMovieURL(_ URL: NSURL) OBJECTIVE-C - (void)setMovieURL:(NSURL * _Nonnull)URL " If I input a URL with any .mov video online. The WKInterfaceMovie closes automatically. Sometimes the

uploading iOS app with watch 2.0 give ITC.apps.preReleaseBuild.errors.invalidBinary

旧巷老猫 提交于 2019-12-06 07:31:36
I'm working on iOS app with watch using xcode 7.0 by after upload version to iTunes give ITC.apps.preReleaseBuild.errors.invalidBinary . How I can solve this problem? Create Xarchieve file by using Xcode, click product->archive Used this to create archive file and than uploaded using xcode instead of application loader. 来源: https://stackoverflow.com/questions/33892431/uploading-ios-app-with-watch-2-0-give-itc-apps-prereleasebuild-errors-invalidbin

Localize watchkit companion app display name

陌路散爱 提交于 2019-12-06 06:47:08
问题 I am having some issues localizing app display name on apple watch companion app. Following the guide lines i have localize the CFBundleName as follow: CFBundleDisplayName = "My app"; CFBundleName = "Myapp"; I did it for every different language supported by my app, but in apple watch companion app it is always shown the english CFBundleDisplayName. Any idea on how properly localize apple watch companion app name? thank you very much for helping 回答1: I believe that is a bug of the iOS9. The

How to design watch app screen like Friends app in watch os?

眉间皱痕 提交于 2019-12-06 06:11:15
I want to create an application with circular menu in dynamic way as like given here . I have tried with lots of efferts but not got success because there are two basic concept for design any watch app like horizonal and vertical what I know as per my learning experience.I want to develope menu which have dynamic menu items. I am not sure it would be possible or not. It would be great if anyone have any idea. Thank you. Finally, I got the solution from the apple developer forum. I have implemented above mentioned functionality with the help of this WWDC video . At the moment, I have developed

WatchKit CoreLocation issue

寵の児 提交于 2019-12-06 05:16:38
问题 I am trying to read current location coordinates in WatchKitExtension ExtensionDelegate. This does though not return any value. The very same code used in WatchKitExtension InterfaceController does return the location. (tried this out of desperation as I could not find an error in the code) I would need to perform this code in ExtensionDelegate as I would like to pass the retrieved location on to a ClockKit Complication. Here the code in ExtensionDelegate: (after self.locationManager

Apple watchOS 2 Accelerometer

痴心易碎 提交于 2019-12-06 04:04:39
I am thinking of making a watchOS2 app that uses the accelerometer. If the app is running in the background, will it still be able to receive input from the accelerometer or CMMotionManager ? You are able to access live accelerometer data only when the watchOS2 app is running. You could however access accelerometer historical data, i.e accelerometer data from when your app was in the background. Watch this WWDC talk for more information: Whats new in Core Motion 来源: https://stackoverflow.com/questions/31361439/apple-watchos-2-accelerometer

Why sending message from WatchKit extension to iOS and getting back a reply is so slow?

江枫思渺然 提交于 2019-12-06 02:46:26
问题 I am using sendMessage method to send a message from WatchKit extension to an iOS app. It takes about 230 ms on average to receive a reply. The time does not depend on whether the iOS app is on screen or running in the background. 230ms is roughly the time it takes for light to travel the Earth circumference and back. But the phone is sitting 30 cm from my watch when I am testing this. Questions : Why is it so slow? Is it supposed to be so slow? Is there a way to make it faster? An

Fixing “Install of Apple Watch Application never finished”

ε祈祈猫儿з 提交于 2019-12-06 00:18:14
For the past 4 weeks, I've had no success in testing a Watch app for my current app project. Initially, I was using Xcode 7 beta 5. However, I'm noticing this behavior in the Xcode 7 GM as well. I created a radar for this with Apple, but they closed it as a duplicate without explaining how to fix this. I have already reviewed the questions here and here , and have attempted every answer they have suggested. But the issue still isn't resolved. My issue: I have an existing iPhone application. I created a new target for the Apple Watch, targeting watchOS 2. I have not touched anything in the

The label “Cancel” from modal segue in Apple Watch showing wrong text - “abbrechen”

China☆狼群 提交于 2019-12-06 00:07:36
问题 When my WKInterfaceController poped up by pressing a menuItem (which was settup by " self.addMenuItem in mainScreen"), the title on the poped WKInterfaceController shows " abbrechen " instead of " Cancel ". Anyone know how to fix it to make it showing " Cancel "? Or like where did I probably make a mistake? //MainScreen.swift func setContextItems(directToEnabled: Bool) { self.clearAllMenuItems() self.addMenuItem(with: WKMenuItemIcon.decline, title: "direct", action: #selector(MainScreen