ios – 默认情况下,iPhone的应用程序通知是否会在Apple Watch上触发,甚至没有创建实际的Watch应用程序?

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

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.有什么方法可以在模拟器上测试它以确保它按预期工作吗?

如果不:
3.有没有办法只支持通知而不创建Watch应用程序?

这是我到目前为止发现的更相关的问题,但它并不是我真正想要的. How to trigger notifications using 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

您的iOS应用程序的通知将在Apple Watch的第一天起作用.

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

如果您的iOS应用已经支持可操作的通知,那么它们将与Apple Watch一起使用.

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

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

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

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

不,您需要提供示例Notification JSON有效负载作为WatchKit Bundle的一部分,这需要提交Apple Watch应用程序.

相关文章

UITabBarController 是 iOS 中用于管理和显示选项卡界面的一...
UITableView的重用机制避免了频繁创建和销毁单元格的开销,使...
Objective-C中,类的实例变量(instance variables)和属性(...
从内存管理的角度来看,block可以作为方法的传入参数是因为b...
WKWebView 是 iOS 开发中用于显示网页内容的组件,它是在 iO...
OC中常用的多线程编程技术: 1. NSThread NSThread是Objecti...