问题
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 notifications, Apple Watch displays those notifications at appropriate times.
iOS it self decide to pass the notification to Apple Watch or show on iPhone, Official reference: Apple Watch Programming Guide - Notification Essentials
may be helped
来源:https://stackoverflow.com/questions/33419041/how-to-display-push-notification-in-apple-watch