gpt4 book ai didi

ios - 如何仅在 watch 应用程序中支持可操作的通知?

转载 作者:行者123 更新时间:2023-11-29 12:06:11 25 4
gpt4 key购买 nike

我没有在我的 iPhone 应用程序中实现可操作通知,但我想为配套的 Watch 应用程序实现可操作通知。从 Apple 文档中我发现我们需要在父 iPhone 应用程序中注册可操作通知。是否有可能通过在 Watch Kit 扩展类中注册来支持 watch 应用程序中的可操作通知,或者是否有任何其他可能性来实现这一点?

最佳答案

Notification Essentials for watch 中所述

Apple Watch displays local and remote notifications only if the containing iOS supports them. For information about how to support local and remote notifications in your iOS app, see Local and Remote Notification Programming Guide.

因此您无法只支持 watch 的通知而不支持父应用程序的通知。

关于ios - 如何仅在 watch 应用程序中支持可操作的通知?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34920013/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com