如何在 Apple Watch 中显示推送通知? [英] How to display push notification in apple watch?

查看:43
本文介绍了如何在 Apple Watch 中显示推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

推荐答案

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

Your notifications will show up on the Apple Watch automatically:

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

If your iOS app supports local or remote notifications, Apple Watch displays those notifications at appropriate times.

iOS 自行决定将通知传递给 Apple Watch 或在 iPhone 上显示,官方参考:Apple Watch 编程指南 - 通知要点

iOS it self decide to pass the notification to Apple Watch or show on iPhone, Official reference: Apple Watch Programming Guide - Notification Essentials

可能有帮助

这篇关于如何在 Apple Watch 中显示推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆