按照Parse文档中的所有步骤,我已经将我的应用程序设置为接收从Parse发送的推送通知:
https://www.parse.com/docs/ios/guide#push-notifications
当在我的移动设备上运行时,应用程序会收到我从Parse发送给它的每一个推送通知,但推送打开没有被跟踪。这是我在仪表板上看到的:

鉴于PFAnalytics.trackAppOpenedWithLaunchOptions and PFAnalytics.trackAppOpenedWithRemoteNotificationPayload返回各自的BFTasks,我为它们添加了一个完成块,如下所示:
在application:didReceiveRemoteNotification中
PFAnalytics.trackAppOpenedWithRemoteNotificationPayload(userInfo).continueWithBlock({ (task) -> AnyObject! in
assert(task.completed, "task should have completed")
assert(!task.cancelled, "task should not have been cancelled")
assert(!task.faulted, "task should not complete due to error or exception")
return task
})在application:didFinishLaunchingWithOptions中
PFAnalytics.trackAppOpenedWithLaunchOptions(launchOptions).continueWithBlock({ (task) -> AnyObject! in
assert(task.completed, "task should have completed")
assert(!task.cancelled, "task should not have been cancelled")
assert(!task.faulted, "task should not complete due to error or exception")
return task
})continuations块确实被调用了,但没有一个asserts失败,因此PFAnalytics应该成功地将数据发送到Parse Analytics。
为什么我的推送开通率和开通率仍然为零?
发布于 2015-09-10 17:12:11
由Facebook提交并确认的Bug:https://developers.facebook.com/bugs/119817525037600/
发布于 2015-10-20 22:44:54
我已经意识到,如果你在Analytics部分查找"Push Opens“事件,就会跟踪推送打开,但没有给出关于单个推送活动的信息,这使得A/B测试目前完全无用。
https://stackoverflow.com/questions/32382194
复制相似问题