如何在苹果手表上显示推送通知?[英] How to display push notification in apple watch?

本文是小编为大家收集整理的关于如何在苹果手表上显示推送通知?的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我正在使用AppCelerator开发一个iPhone应用程序,其中我在其中注册了推送通知,因此,当我收到推送通知并锁定设备时,我想在配对的Apple Watch中证明这一点.因此,我的问题是我需要在我的项目中包括任何Apple Watch扩展名,还是默认情况下它将显示在Apple Watch中? 我没有Apple Watch设备,所以我无法测试.

推荐答案

您的通知将自动显示在Apple Watch上:

如果您的iOS应用程序支持本地或远程通知,则Apple Watch在适当的时间显示这些通知.

ios自行决定将通知传递给Apple Watch或在iPhone上显示, Official reference: Apple Watch编程指南 - 通知必需品

可以帮助

本文地址:https://www.itbaoku.cn/post/1938193.html

问题描述

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.

推荐答案

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