【发布时间】:2023-03-17 04:59:02
【问题描述】:
我已按照在线教程尝试在我的应用中设置推送通知功能。我按照他们的所有步骤进行操作,但从仪表板发送推送通知后,我仍然无法在设备上收到推送通知。
这是我所做的:
1) 在 Apple Developer 上创建 Bundle ID、Provisioning Profile 和 SSL 证书,全部集成到应用程序和服务器中,并在我的硬件开发设备上注册。 (所有类型都是 iOS 开发,而不是分发/生产)
2)我的App Delegate中设置的必要功能,如func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData)
3) 在 Parse Server 上成功创建设备的安装 ID。
4) 在 Info.plist 中编辑以根据 Apple Developer 网站上启用 Push 的 ID 设置我的捆绑 ID。
5) 在项目和目标下的构建设置和常规中设置的配置文件
6) 在 Targets > MyApp > Capabilities 下,Push Notifications 已打开
7) 将应用程序从 Xcode 直接下载到硬件测试设备。
8) 在应用上登录测试用户。
9) 应用已打开并在设备上运行。
10) 从仪表板发送推送。
11) 设备未收到通知,仪表板显示:Pushes Sent: 0
我错过了什么吗?经过这一切,我的应用仍然没有收到通知。
【问题讨论】:
标签: ios parse-platform push-notification apple-push-notifications parse-server