apple-watch

Why is Starscream not working anymore on real Apple Watch (WatchOS 6)?

两盒软妹~` 提交于 2020-01-05 03:26:12
问题 Recently I upgraded my Apple Watch to WatchOS 6.0.1, my iPhone to iOS 13.1.2, Xcode to 11.1. MacOS still 10.14.6. I've created an Independent Apple Watch project where I test the communication between the Watch and a WebSocket server using Starscream: https://github.com/daltoniam/Starscream It works perfectly on the Simulator but on real Apple Watch when I try to connect to the server I got these errors : 2019-10-08 18:57:53.064887+0200 BackgroundWebSocketOnlyWatch WatchKit Extension[251

Apple Watch (WatchKit) push action

断了今生、忘了曾经 提交于 2020-01-04 17:37:13
问题 I am developing an app for the Apple Watch and I would like to use the action demonstrated at the launch event where the user pushes into the screen (rather than a tap). Do you know what this is called and how I can access this? 回答1: You can only show a menu on that action. You use addMenuItem methods on WKInterfaceController. 回答2: The gesture you are referring to is called a Force Touch. It is possible to use Force Touch as an input method in third party apps. You cannot register to receive

Apple Watch (WatchKit) push action

一个人想着一个人 提交于 2020-01-04 17:35:33
问题 I am developing an app for the Apple Watch and I would like to use the action demonstrated at the launch event where the user pushes into the screen (rather than a tap). Do you know what this is called and how I can access this? 回答1: You can only show a menu on that action. You use addMenuItem methods on WKInterfaceController. 回答2: The gesture you are referring to is called a Force Touch. It is possible to use Force Touch as an input method in third party apps. You cannot register to receive

How to overlap two controls in iOS watch kit using interfacebuilder

自作多情 提交于 2020-01-04 04:14:48
问题 I have two button with images and i want to overlap one over another. Is it even possible to do it iOS Watch? Moreover, how to handle background or foreground depth of a WKInterfaceObject in watch programming, like sendViewtoBackground or bringSubViewtoFront, as in normal iOS programming ? 回答1: In the watch you don't have a Z hierarchy. The max you can do is using a group, that has a background and then have controls over that background. Another alternative (hack?) is to render all your

how to get current distance between iPhone and paired Apple Watch

夙愿已清 提交于 2020-01-03 10:10:12
问题 is there any way to get distance between apple watch and paired iPhone. I am working on a test case in which .. iPhone and Apple Watch should be notified when distance between both devices got change. 回答1: You technically can't get the exact distance, but you can make one device act as a beacon and work on their Core Location proximity. You have up to three proximity states on which you can check the distance: CLProximityImmediate (i.e. the device are very close to each other),

How to style rows in SwiftUI List on WatchOS?

谁都会走 提交于 2020-01-03 09:44:12
问题 I'm working with SwiftUI and is trying to make a list of buttons with custom .buttonStyle inside a List view on WatchOS, but can't get it to work. Is this even currently possible, and if so, how? Example project: struct Superhero: Identifiable { var id = UUID() var name: String } var superheroes = [ Superhero(name: "Batman"), Superhero(name: "Superman"), Superhero(name: "Wonder Woman"), Superhero(name: "Aquaman"), Superhero(name: "Green Lantern"), Superhero(name: "The Flash") ] struct

Did Apple change NSUserDefaults sharing from iOS app to watchOS app

旧时模样 提交于 2020-01-03 04:44:08
问题 I want to ask about how to use NSUserDefaults on watchOS app. Is its data different from iOS app's NSUserDefaults 's data? There are a lot of stackoverflow questions about this topic and all of them have same answers. That said, for example Watch apps that shared data with their iOS apps using a shared group container must be redesigned to handle data differently. In watchOS 2, each process must manage its own copy of any shared data in the local container directory. For data that is actually

Detecting 'Cover to Mute' action on Apple Watch

被刻印的时光 ゝ 提交于 2020-01-03 03:12:09
问题 There's a feature on Apple Watch where you can cover the screen with your palm to mute it. For example, if you get a call in a meeting, you can cover your watch screen to mute the ring. I would like to use this feature in an app, but can't find documentation that tells me how to detect this action. Does anyone know of how to detect this, or perhaps even how I could simulate this? I know multi-touch is out, and don't know how Apple is detecting the face being covered. 回答1: It's currently not

Failed to install error: Invalid Bundle - No Apple Watch Binary [duplicate]

こ雲淡風輕ζ 提交于 2020-01-03 02:32:05
问题 This question already has answers here : Failed to install app error: Invalid Bundle - No Apple Watch Binary (10 answers) Closed 4 years ago . Update to iOS App + Apple Watch App works locally, but when downloaded via the App Store, users complain that the Watch App fails to install, with the following screenshot attached. How can this problem be resolved? 回答1: Restart the Apple Watch. As far as I can tell, this appears to be an issue for Apple to resolve. 来源: https://stackoverflow.com

Smart Watch (Android & Apple) integration in Ionic Framework

僤鯓⒐⒋嵵緔 提交于 2020-01-02 05:39:06
问题 I am working on Ionic Framework from couple of months, I also checked out new Ionic version out 1.0.1. Actually I post this question regarding creating smart watch application in ionic framework. Until now I Google and I just found this cordova plugin which interact with Apple watch https://github.com/20steps/cordova-plugin-watch. This is only support for iOs. There are several cordova plugin available but I did't find any relevant answer or tutorial or blog using which I can learn smart