且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

WatchOS App 4.0:如何安排本地通知

更新时间:2023-01-06 07:55:52

确保您的iphone已锁定。当涉及通知时,它关于在何处提供该通知的偏好。

Make sure your iphone is locked. When it comes to notification, its about preference where to deliver that notification.

在模拟器上运行您的手表应用程序,从iPhone模拟器安排通知并锁定iPhone模拟器屏幕,保持手表模拟器处于活动状态,在这种情况下通知是触发后,它将在您的手表模拟器上发布。当您在实际设备上进行测试时也是如此。
Source Link

当iphone和手表都被锁定时,首选是iphone。

And when both iphone and watch is locked, preference is iphone.

UPDATE

Apple Watch上的通知