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 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!