apple-watch

Phone call with Watch OS2

老子叫甜甜 提交于 2019-12-23 16:34:22
问题 Is it possible to start a call from the watch using Watch OS 2? I have a button in my watch os2 app and I need a way to start a call to a precompiled number from the watch or at least to start the call in the iPhone. Thanks 回答1: Yes it is possible on WatchOS 2: Apps can initiate telephone calls or SMS messages using the openSystemURL: method of the shared WKExtension object. When you open a URL that uses the tel or sms scheme, Apple Watch redirects that URL to the appropriate system app for

How to change apple watch interface controller title size/text?

痞子三分冷 提交于 2019-12-23 15:26:35
问题 How to change apple watch interface controller title size/text ? Can we provide custom fonts ? Tries with setting title programmatically using NSAttributedText but no success. Any ideas ? 回答1: You can change the interface controller's title by calling: swift : func setTitle(_ title: String?) objc: - (void)setTitle:(NSString *)title For now we can't change the title text size or use a custom font for the title. 来源: https://stackoverflow.com/questions/28083467/how-to-change-apple-watch

Wat is the difference between static notification and dynamic notification?

被刻印的时光 ゝ 提交于 2019-12-23 10:49:37
问题 Wat is the difference between static notification and dynamic notification? could anyone help me 回答1: Notifications come in 2 flavours Short and Long (as per iOS 8.2). The Long ones can be Static or Dynamic. All of them have a system "Dismiss" button. Short You can't customise these at all. They show your app logo, the title of the notification payload and your app name. Long - Static You can customise these on the Storyboard. You can't add buttons directly on the Storyboard but you can have

Is it safe to share access tokens with Watch Connectivity's updateApplicationContext?

自作多情 提交于 2019-12-23 10:48:12
问题 Is the applicationContext encrypted? Or is it simply stored as an unencrypted plist file? Because if it's the latter, I shouldn't be transferring access tokens using that. 回答1: The communication between the devices is encrypted, as documented in the iOS Security Guide. I haven't seen any documentation on whether the applicationContext storage location is encrypted, but to be safe you could encrypt the token yourself before queueing it to be sent and decrypt when the other device has received

Possible to create watch face for Apple Watch?

谁说我不能喝 提交于 2019-12-23 09:26:31
问题 I've googled over the internet, still can't find an official answer. I can see I can make build glance scenes, but those are "hidden" one swipe away from the user beneath actual watch face. Are developers allowed to publish watch faces? 回答1: No, it is not possible. In the Apple WatchKit forums, an Apple evangelist links to this thread for the FAQ on creating a custom watch face. https://devforums.apple.com/thread/254629?tstart=15 Here is the link to the "official" WatchKit FAQ https:/

How to prevent the Apple Watch from going to sleep?

自作多情 提交于 2019-12-23 07:08:13
问题 We are working on an Apple Watch project, but the watch goes to sleep if uninterrupted with. Is there any way to prevent it from going to sleep? 回答1: As of my knowledge and other searches on this topic, at the moment is no api available to enable or even disable sleep mode for Apple Watch programmatically. 回答2: No-Sleep API Currently, there is no API to disable Apple Watch from going to sleep. You may wait until watchOS 3. Changing Sleep Time By User Any user can go to this path: Settings ->

Apple Watch pre-build action to change storyboard customModule references

倾然丶 夕夏残阳落幕 提交于 2019-12-23 06:56:44
问题 I currently have a project with 3 different versions of the same app (different branding and such), which is working just fine. I've since then added 3 new Apple Watch targets (1 for each app "version"), where which 2 of them reference the files in the "master" Apple Watch target. Everything works fine as long as i remember to change the module reference for each storyboard view, so that it maps to the correct interface controller in the corresponding watchkit extension target. However,

WCSession - PayloadTooLarge

 ̄綄美尐妖づ 提交于 2019-12-23 03:06:29
问题 Apple Documentation shows: PayloadTooLarge - An error indicating that the item being sent exceeds the maximum size limit. This type of error can occur for both data dictionaries and files. Available in watchOS 2.0 and later. Does anyone know what the max size limits are for both these methods are for transferring data from the watch to the phone?: func transferUserInfo(_ userInfo: [String : AnyObject]) -> WCSessionUserInfoTransfer and func transferFile(_ file: NSURL, metadata metadata:

WatchKit Notification Title Color

不想你离开。 提交于 2019-12-23 02:22:20
问题 Is it possible to set the color of the application title (the text that is on a sash). It seems that it is always fixed to white. In my application I have a light background image with a color that is close to white in the right corner. This makes the name of the app barely readable. I could not find a way to customize the app title color neither in xCode nor programmatically. It might well be that it is fixed to white. But if anybody changed it, please share the solution! 回答1: You can click

Fixing “Install of Apple Watch Application never finished”

痞子三分冷 提交于 2019-12-22 10:28:25
问题 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