即使我将 NotificationPayload.apns
文件添加到我的项目中,我仍收到以下错误。
WatchKit Error - no notification payload. Add a payload to your WatchKit extension to populate your notification controller.
如何解决这个问题?
最佳答案
To test your notification interface with the JSON payload, configure the build scheme with the appropriate payload file. When you select a notification interface executable, Xcode adds a menu for choosing one of your payload files. You can create different build schemes for different notification payloads, or you can update the payload file for an existing build scheme before testing.
关于ios - WatchKit 错误 - 没有通知负载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29650960/