【发布时间】:2022-08-18 02:15:39
【问题描述】:
我想通过 APN 向我的独立 Apple Watch 应用添加推送消息。我找到了这个解释https://www.raywenderlich.com/11395893-push-notifications-tutorial-getting-started,它解释了如何很好地使用它。我面临的唯一问题是,在本教程中,他将所有重要代码放在 AppDelegate.swift 文件中,但在我的项目中,我无法找到该文件。我是在做错什么,还是该文件有一个等效的选项,我应该在哪里放置此代码?
标签: swift apple-push-notifications apple-watch appdelegate watchos