Re: Adding a watchOS complication to an existing project?

2017-03-04 Thread Saagar Jha
I remember doing this around a year ago, but IIRC there wasn’t an easy way to do this. I think I created a new extension with a complication and copy/pasted stuff from the new target. Saagar Jha > On Mar 3, 2017, at 07:08, Eric E. Dolecki wrote: > > Everything I've seen

Adding a watchOS complication to an existing project?

2017-03-03 Thread Eric E. Dolecki
Everything I've seen shows adding the complication on project creation. How does one go about adding it to a project later on? I have my watch app right where I want it, but I didn't think I would need a complication. Until today. Thanks! ___ Cocoa-dev

watchOS

2016-12-06 Thread Gerriet M. Denkmann
watchOS 3 The watchApp has NotificationController ← WKUserNotificationInterfaceController watchApp gets a Local Notification with one associated UNNotificationAction with title = “Accept” [NotificationController init] [NotificationController didReceiveNotification:withCompletion

Re: Message from iOS to watchOS

2016-12-06 Thread J. Scott Tury
>> the lock screen.) >> >> Keep experimenting. :) > > I followed your wise advice and found out that Local Notifications are not > delivered in these cases: > • different Apps on same iOS Device > • same App on different iOS Devices > which means the only case

Re: Message from iOS to watchOS

2016-12-06 Thread Gerriet M. Denkmann
ing. :) I followed your wise advice and found out that Local Notifications are not delivered in these cases: • different Apps on same iOS Device • same App on different iOS Devices which means the only case remaining is: • some App sends a Local Notification to itself. If this sending iOS

Re: Message from iOS to watchOS

2016-12-05 Thread J. Scott Tury
ficationRequestsWithCompletionHandler. > It sets the categoryIdentifier of the sent UNNotificationContent to “my test > category”. > > The receiving app (same iOS device) never sees anything. Although it does > setNotificationCategories with a UNNotificationCategory with the same > ca

Re: Message from iOS to watchOS

2016-12-04 Thread Gerriet M. Denkmann
setNotificationCategories with a UNNotificationCategory with the same category: “my test category”. This might indicate possibility “C”: local notifications are local to the sending app. Or it may just be a proof that I am doing it wrong. > > Communicate between watchOS, and iPhone: To b

Re: Message from iOS to watchOS

2016-12-04 Thread J. Scott Tury
notifications. https://developer.apple.com/reference/usernotifications/unnotificationrequest You might want to spend a bit of time looking over the Apple documentation as to what Notifications are, and how they work: https://developer.apple.com/notifications/ Communicate between watchOS, and iPhone

Re: Message from iOS to watchOS

2016-12-04 Thread Gerriet M. Denkmann
> can add in any actions you would like your user to be able to have. > > Scott One fundamental question: what does “local” in Local Notification mean? A: “local” as in local Wlan i.e. a local Notification gets sent to all iOS and watchOS devices in the local Wlan B:

Re: Message from iOS to watchOS

2016-12-03 Thread J. Scott Tury
; From: "Gerriet M. Denkmann" <gerri...@icloud.com <mailto:gerri...@icloud.com>> > To: cocoa-dev <cocoa-dev@lists.apple.com <mailto:cocoa-dev@lists.apple.com>> > Subject: Message from iOS to watchOS > Message-ID: <2001a5e8-10f8-4b30-86c4-9dfee6198...@icl

Message from iOS to watchOS

2016-12-02 Thread Gerriet M. Denkmann
I have a pair of apps: iOS + watchOS. The iOS app would like (e.g. when the user taps a button) to send some (short) info to the watchOS app. The watchOS app probably should show something like a Notification Controller Scene: Message from iOS (title) Something was done