apple-watch

How to show notification in watch kit , where iPhone app is already showing the notifications

折月煮酒 提交于 2019-12-24 17:29:55
问题 I have an app which shows notification in iPhone. Now I am trying to show the same notification in WatchKit or in iWatch. So do I need to recopy all the functionalities I already did in ViewController and AppDelegate of iPhone app in Watchkit Extension or is there some common interface to notify the watch to show the notification, only UI I need to provide. 回答1: iOS will decide to send notification to apple watch or to iPhone. If your iPhone is active then notification will come to iPhone. If

Is the deployment target must be 8.2 when I develop with the WatchKit?

微笑、不失礼 提交于 2019-12-24 14:09:15
问题 Now, the Xcode 6.2 and SDK 8.2 are released. I want to develop the Watch App based on iOS App that the deployment target is 7.0, Must I set the deployment target to 8.2 if I want to develop my Watch App? 回答1: The Base SDK must be 8.2. The Deployment Target can be anything you wish to support. But anyone using your app on a device with iOS 8.1 or earlier won't be able to use it with an Apple Watch. That requires a device running iOS 8.2. If your app only makes sense when used with a watch,

How to display push notification in apple watch?

霸气de小男生 提交于 2019-12-24 12:36:15
问题 I am developing an iphone app using Appcelerator, In which I registered for push notification, so when I receive a push notification and device is locked I want to show that in paired apple watch. So my question is Do I need to include any apple watch extension to my project or by default it will display in apple watch? I don't have an apple watch device so I cant test it. 回答1: Your notifications will show up on the Apple Watch automatically: If your iOS app supports local or remote

How can i start developing app on watchOS 3 SDK?

Deadly 提交于 2019-12-24 07:19:05
问题 I can't find latest watchOS 3 SDK inside latest version of XCode 8 beta 2 even though they have mentioned it in their release notes. I have upgraded my Apple Watch to watchOS 3 beta 2 but I can't run my app on it: Error: No symbols for paired Apple Watch 回答1: It's available in the latest XCode version 8.2. Download it from the apple website. 来源: https://stackoverflow.com/questions/38260031/how-can-i-start-developing-app-on-watchos-3-sdk

App icon is not displaying in Apple Watch App

北战南征 提交于 2019-12-24 05:26:10
问题 I am developing my first iWatch App, i added icons for watch app in Image Assets folder of Application.But when i install app in iWatch, then App icon not displaying. Please find image , which showing app without Icon. 回答1: You have to put the correct icons with the correct size not in the iOS App Xcassests but in the WatchApp Xcassetes. 来源: https://stackoverflow.com/questions/32993946/app-icon-is-not-displaying-in-apple-watch-app

WatchOS 2 App fails to launch on device with dyld_fatal_error for my Framework Library not loaded: Image not found

核能气质少年 提交于 2019-12-24 05:18:07
问题 I've just followed the apple transition guide to upgrade my ObjectiveC app to WatchOS 2 https://developer.apple.com/library/watchos/documentation/General/Conceptual/AppleWatch2TransitionGuide/ConfiguretheXcodeProject.html With the section "Sharing Code Between an iOS App and a watchOS App" describing how to duplicate an existing iOS framework into a WatchOS framework target for use by WatchOS as follows. "If you already have a watchOS 1 app that shares a framework with your iOS app, duplicate

iTunes Connect yellow warning icon

随声附和 提交于 2019-12-24 04:18:06
问题 What does the yellow warning symbol beside my build number on iTunes Connect mean? Will my app get rejected because of this? I'm submitting an app with an apple-watch extension. Thanks 回答1: It's there because Testflight doesn't support WatchKit extensions right now. You can still submit without any issues. I've done it numerous times. 来源: https://stackoverflow.com/questions/29525873/itunes-connect-yellow-warning-icon

Retrieving location on the Apple Watch

半世苍凉 提交于 2019-12-24 03:01:58
问题 I want to get the latitude and longitude of the user and display it on the Apple Watch. I have already included the core location framework in my Watchkit Extension. When I run the program all I get for the lat and long is 0.0 and 0.0 I tested the same method in a class on the iPhone and it worked, and gave me the appropriate coordinates. What am I doing wrong? The .h file: #import <WatchKit/WatchKit.h> #import <Foundation/Foundation.h> #import <CoreLocation/CoreLocation.h> @interface

Apple Watch - detect if watch is locked

邮差的信 提交于 2019-12-23 20:33:02
问题 I am working on an app, which requires the user to have the apple watch actually on-body. So, whenever the user puts the watch off his wrist, the iPhone app should detect that and stop different tasks immediately. Initially, I thought that I could use the wrist detection feature which automatically locks the watch. However, there is no public API to access the lock or wrist state. Then, I thought that using the WatchConnectivity framework I could use the activationState and listen for changes

Close/Deactivate WCSession

谁都会走 提交于 2019-12-23 17:12:01
问题 I am developing an iPhone app (iOS 9 beta) with watch extension (watchOS 2), and to pass the data from watch to phone I am using WCSession. I have 2 different view controllers using WCSessions, so for each of the controller I am instantiating new WCSession object. For the first view controller it works fine, but when I want to receive messages in second view controller, few initial messages are still being sent to first controller. Is there any way I can deactivate / disable session of first