Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parse PFAnalytics not tracking push opens

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:

enter image description here

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?

like image 342
Eric Avatar asked Sep 03 '15 17:09

Eric


1 Answers

Bug filed and confirmed by Facebook: https://developers.facebook.com/bugs/119817525037600/

like image 92
Eric Avatar answered Sep 29 '22 15:09

Eric