I've set up my app to receive push notifications sent from Parse, following all the steps in Parse's documentation:
https://www.parse.com/docs/ios/guide#push-notifications
When running on my mobile devices, the app receives every single push notification I send to it from Parse, but push opens are not being tracked. This is what I see on the dashboard:
Given that PFAnalytics.trackAppOpenedWithLaunchOptions
and PFAnalytics.trackAppOpenedWithRemoteNotificationPayload
return their respective BFTasks
, I've added a completion block for them as follows:
In 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
})
In 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
})
The continuations block do get called, but none of the asserts
fail, so PFAnalytics
is supposedly successfully sending the data to Parse Analytics.
Why are my push opens and open rate still zero?
Bug filed and confirmed by Facebook: https://developers.facebook.com/bugs/119817525037600/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With