Facebook installs tracking for Android

不想你离开。 提交于 2019-12-04 05:58:16

问题


We are still in process of investigation, why our installs do not get tracked. I have opened another support ticket with Facebook to clarify if install and login are equal or different events, but I also want to dig more into the Ti.Facebook module. We've been testing on Android because of the ease of updates.

This is the explanation on Facebook SDK, what needs to be done, to track installs:

https://developers.facebook.com/docs/app-ads/sdk#install-tracking

And this is the code to log in installs in Android:

protected void onResume() { 
  super.onResume(); 
  AppEventsLogger.activateApp(this); 
}

I searched all over Ti.Facebook module, and I have not found a call to AppEventsLogger.activateApp

Can it be a bug or is there some other way to activate the logger first time upon install?


回答1:


It seems there indeed this is only implemented for iOS and not for Android. You could create a JIRA ticket at the Appcelerator JIRA to report this as a bug.

If you link to this question Appcelerator will understand the reference, and link the JIRA ticket here, so others can also follow this ticket for progress.




回答2:


I have fixed this bug and submitted pull request to Ti.Facebook module. We have published a release to check it, it´s there since yesterday afternoon and it works correctly now for our startup.

Pull request: https://github.com/appcelerator-modules/ti.facebook/pull/37



来源:https://stackoverflow.com/questions/34798237/facebook-installs-tracking-for-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!