iPhone 的应用程序通知是否会默认在 Apple Watch 上触发,甚至无需创建实际的 Watch 应用程序? [英] Are iPhone's apps notifications going to be triggered on the Apple Watch by default, without even creating an actual Watch app?

查看:30
本文介绍了iPhone 的应用程序通知是否会默认在 Apple Watch 上触发,甚至无需创建实际的 Watch 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从 Apple Watch 发布的第一刻起就在 Apple Watch 中支持我的 iPhone 应用程序本地通知,但我还没有计划构建 Watch 应用程序.根据我的研究,Watch 似乎会自动支持 iPhone 的通知,无需任何额外的开发或 WatchKit 实现.

I would like to support my iPhone's app Local Notifications in the Apple Watch from the very first moment the Watch is released, but I don't plan on building a Watch App yet. From what I researched, it seems like iPhone's notifications will be automatically supported on the Watch, without needing any additional development or WatchKit implementation.

应用无需执行任何操作即可支持通知.系统提供了一个默认的通知界面,用于显示来自通知的警报消息.但是,应用可以自定义通知界面并包含自定义图形、内容和品牌.

Apps are not required to do anything to support notifications. The system provides a default notification interface that displays the alert message from the notification. However, apps can customize the notification interface and include custom graphics, content, and branding.

这是正确的吗?

如果是这样:1. Watch 上的通知是否会像为 iPhone 应用程序配置一样具有操作按钮?2. 有什么方法可以在模拟器上测试以确保它按预期工作?

If so: 1. Will notifications on the Watch have action buttons just like configured for the iPhone app? 2. Is there any way I can test that on the simulator to be sure it works as expected?

如果不是:3. 有没有什么方法可以只支持通知而不创建手表应用?

If not: 3. Is there any way to support only notifications without creating a Watch app?

这是迄今为止我发现的更相关的问题,但这并不是我真正想要的.如何使用WatchKit触发通知

This is the more related question I found so far, but it's not really what I'm looking for. How to trigger notifications using WatchKit

推荐答案

我想从 Apple Watch 发布的第一刻起就在 Apple Watch 中支持我的 iPhone 应用程序本地通知

I would like to support my iPhone's app Local Notifications in the Apple Watch from the very first moment the Watch is released

是的,您的 iOS 应用程序从第一天起就可以在 Apple Watch 上使用通知.

Yes notifications for your iOS application will work from day one on Apple Watch.

Watch 上的通知是否有操作按钮,就像为 iPhone 应用配置?

Will notifications on the Watch have action buttons just like configured for the iPhone app?

如果您的 iOS 应用已经支持可操作的通知,它们将适用于 Apple Watch.

If your iOS app already supports actionable notifications they will work with Apple Watch.

有什么办法可以在模拟器上测试它以确保它有效正如预期的那样?

Is there any way I can test that on the simulator to be sure it works as expected?

实际上,好问题,您无法在模拟器上测试当前 iOS 应用的通知,但您可以从 WatchKit 测试自定义通知界面.

Good question actually, you can't test your current iOS app's notifications working on the simulator but you can test a custom notification interface from WatchKit.

您应该为此提交功能请求.

You should file a feature request for this.

有没有什么方法可以在不创建 Watch 应用的情况下只支持通知?

Is there any way to support only notifications without creating a Watch app?

不,您需要提供示例通知 JSON 负载作为 WatchKit 捆绑包的一部分,这需要提交 Apple Watch 应用.

No, you'll need to provide a sample Notification JSON payload as part of an WatchKit Bundle, which requires submitting an Apple Watch app.

这篇关于iPhone 的应用程序通知是否会默认在 Apple Watch 上触发,甚至无需创建实际的 Watch 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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