apple-watch

Is it possible to hide the time in the Apple Watch header?

我怕爱的太早我们不能终老 提交于 2021-02-19 07:32:29
问题 I want to create an app that displays the time. This makes the time in the header redundant. 回答1: You may present a view controller modally. In this case, no time is displayed at the top. However, you should be aware of the following App Store Review Guideline: Watch Apps whose primary function is telling time will be rejected 来源: https://stackoverflow.com/questions/29184213/is-it-possible-to-hide-the-time-in-the-apple-watch-header

How to Customize the Apple Watch Vertical Scrollbar

不羁岁月 提交于 2021-02-19 05:47:06
问题 I was just thinking, it is not possible at this time to change the color of the Vertical scrollbar in Apple Watch. But I just saw the App on Apple site and here is the screen shot of the app I want to change the color of the scrollbar from default to my desired color as the above picture shows green scrollbar scroller. i found no way to access it, even in WKWindowsFeatures and not accessible in storyboard. Global tint color is just for the -The title string in the status bar -The app name in

Capture model identifier for Apple Watch from WatchOS

谁说胖子不能爱 提交于 2021-02-11 12:36:13
问题 It looks like there aren't any documented official methods of obtaining the Apple Watch model from a watch app, but there is this post showing special use of sysctlbyname : How to determine the Apple Watch model? Could anyone help me figure out why this function isn't working? It sometimes returns "Watc\t" instead of the expected "Watch2,4" Swift's sysctlbyname function seems to be this c function described here: https://opensource.apple.com/source/Libc/Libc-167/gen.subproj/sysctlbyname.c

Storekit implementation on Apple Watch?

丶灬走出姿态 提交于 2021-02-08 10:42:30
问题 Apple recently announced the ability to make purchases on the Apple Watch. I'm running Watch OS 6.2 and made a sandbox purchase on the iPhone, but there is no receipt on the watch (at least using Bundle.main.appStoreReceiptURL code below) Do we have to handle passing the receipt from the iPhone to the Watch ourselves? My understanding was that there would be an equivalent receipt saved on the watch we could parse. private func loadReceipt() -> Data? { guard let url = Bundle.main

Check if user has AppleWatch connected without prompting the watch

眉间皱痕 提交于 2021-02-07 20:53:33
问题 We are using Google Analytics , and want to know how many of our users are in possession of an AppleWatch . I have searched Stack for answers, and the recurring answer is to use this: if WCSession.isSupported() { // check if the device support to handle an Apple Watch let session = WCSession.defaultSession() session.delegate = self session.activateSession() // activate the session if session.paired { // Check if the iPhone is paired with the Apple Watch // Do stuff } } The problem with this

Check if user has AppleWatch connected without prompting the watch

廉价感情. 提交于 2021-02-07 20:52:21
问题 We are using Google Analytics , and want to know how many of our users are in possession of an AppleWatch . I have searched Stack for answers, and the recurring answer is to use this: if WCSession.isSupported() { // check if the device support to handle an Apple Watch let session = WCSession.defaultSession() session.delegate = self session.activateSession() // activate the session if session.paired { // Check if the iPhone is paired with the Apple Watch // Do stuff } } The problem with this

Request location on the Apple Watch only, without code on the paired phone

你离开我真会死。 提交于 2021-02-07 11:54:55
问题 I've looked everywhere including Apple's sample app. But I can't find anywhere when I can request location without needing any code running on the phone, the below code when used in an 'interface controller' returns a "not determined" status. I did check that my info.plist has the privacy key values set. import Foundation import CoreLocation class LocationManager: NSObject, CLLocationManagerDelegate { /// Location manager to request authorization and location updates. let manager =

How to track in iOS app if user has Apple Watch without watch extension? [closed]

删除回忆录丶 提交于 2021-02-07 10:29:57
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . Improve this question I want to know if my users have Apple Watch. If many user do, so I will develop Apple Watch application extension for my iOS app. Can I know if even watch is not paired? 回答1: You should look at the WatchConnectivity framework. Especially, the isPaired method

How to track in iOS app if user has Apple Watch without watch extension? [closed]

你离开我真会死。 提交于 2021-02-07 10:29:07
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . Improve this question I want to know if my users have Apple Watch. If many user do, so I will develop Apple Watch application extension for my iOS app. Can I know if even watch is not paired? 回答1: You should look at the WatchConnectivity framework. Especially, the isPaired method

WatchKit WatchOS - Location Services Prompt never displayed on the Apple Watch

怎甘沉沦 提交于 2021-01-29 20:02:28
问题 When I call requestWhenInUseAuthorization() from an Watch App, the Location Services prompt is never displayed to the user: neither in the Watch app, nor in the iPhone app. The Support Running Without iOS App Installation is not checked (if I check it, the prompt is correctly displayed, but I don't want my app to work without an iOS companion app). I added the NSLocationWhenInUseUsageDescription key in the info.plist of both the iPhone app and the Watch Extension. I also tried to add the