apple-watch

Apple watch and iPhone are not connected when the app in phone goes to background

守給你的承諾、 提交于 2020-01-14 10:12:29
问题 I ran my iPhone app and its watch extension in the simulator. I send messages from phone to watch and vice versa. The messages are sent and received without any issue. But when I send the iPhone app to background, and then a message is sent from watch to iPhone, I continuously get the following log: [WC] __33-[WCXPCManager onqueue_reconnect]_block_invoke error reconnecting to daemon due to NSXPCConnectionInterrupted I searched regarding this but did not find any proper solution. Many have

Parse and watchkit extension

*爱你&永不变心* 提交于 2020-01-14 08:48:20
问题 I am building an app using WatchKit and would like to populate a Table with data from PFObjects I have in a class but I got this error: Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'This decoder will only decode classes that adopt NSSecureCoding. Class 'PFObject' does not adopt it.' Having the same problem as this post 回答1: Have you considered adding a Swift extension to PFObject that adopts the NSSecureCoding protocol? I haven't tried this action

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

眉间皱痕 提交于 2020-01-13 19:09:11
问题 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. 回答1: Finally, I got the solution from the apple developer forum. I have

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

爱⌒轻易说出口 提交于 2020-01-13 19:09:03
问题 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. 回答1: Finally, I got the solution from the apple developer forum. I have

How to tell if current running Apple Watch size/dimension is 38mm or 42mm?

好久不见. 提交于 2020-01-11 17:53:22
问题 We know that there are two screen sizes for Apple Watch: 38mm and 42mm. The WKInterfaceDevice class provides a readable property named screenBounds . I wrote an extension for WKInterfaceDevice , trying to add a method to detect current device type. import WatchKit enum WatchResolution { case Watch38mm, Watch42mm } extension WKInterfaceDevice { class func currentResolution() -> WatchResolution { let watch38mmRect = CGRectMake(0.0, 0.0, 136.0, 170.0) let watch42mmRect = CGRectMake(0.0, 0.0, 156

How to send data from Iphone to Apple Watch in OS2 in Objective-C

五迷三道 提交于 2020-01-09 05:26:07
问题 I've seen a similar question posted on how to send data back and forth in Swift. I'm asking the same question but in Objective-C. I've also viewed Apple's transition docs. I work best with clear examples, rather than lecture material. So if someone has implemented this and wouldn't mind sharing, that would be much appreciated. 回答1: Here´s a link to a Q/A about WatchConnectivity: Send messages between iOS and WatchOS with WatchConnectivity in watchOS2 I will give you an example go

WatchOS 2.0 Sharing Data between iOS App and WatchOS App

半城伤御伤魂 提交于 2020-01-06 22:03:29
问题 Previous I used NSUserDefaults to share basic variables between the watch and app. My goal is to display the user's email address on the watch which is stored on the iPhone app NSUserDefaults. I understand that after Watch v1, you cannot use App Groups anymore to share data. I understand you need to use the Watch Connectivity API but I can only figure out how to use it when an action happens. Not before the Watch App is started. Let me know if you have any ideas. 回答1: Yes, you can store the

WatchOS 2.0 Sharing Data between iOS App and WatchOS App

妖精的绣舞 提交于 2020-01-06 22:01:15
问题 Previous I used NSUserDefaults to share basic variables between the watch and app. My goal is to display the user's email address on the watch which is stored on the iPhone app NSUserDefaults. I understand that after Watch v1, you cannot use App Groups anymore to share data. I understand you need to use the Watch Connectivity API but I can only figure out how to use it when an action happens. Not before the Watch App is started. Let me know if you have any ideas. 回答1: Yes, you can store the

how to pass some message or string from iphone device to paired apple watch

南楼画角 提交于 2020-01-05 09:24:11
问题 I would like to know how a particular message or string can be passed from my iPhone device to the paired iWatch. I would really like to know how this is handled from development point of view. Is there any particular WKInterfaceController method or API which passes the info from iPhone to iWatch? I have read on developer forum that openParentApplication:reply: notifies the iPhone application from iWatch and application:handleWatchKitExtensionRequest:reply handles that particular notification

Issue when uploading binary to iTunes Connect with Xcode 9 on High Sierra (ERROR ITMS-90391)

懵懂的女人 提交于 2020-01-05 05:59:13
问题 When trying to upload a binary to iTunes connect using XCode 9 (or Application Loader) on High Sierra, I'm getting the following error: ERROR ITMS-90391: "Missing Icons. No icons found for watch application ‘AppName/Watch/WatchApp.app'. Make sure that its Info.plist file includes entries for CFBundleIconFiles." May I note here that the exact same binary was uploaded yesterday, using XCode 9GM on Sierra with no problems. Things I've already verified/tried: Cleaned project, deleted DerivedData