Facebook 为 Android 安装跟踪 [英] Facebook installs tracking for Android
问题描述
我们仍在调查为什么我们的安装没有被跟踪.我已经与 Facebook 开了另一个支持票,以澄清安装和登录是相同的还是不同的事件,但我也想深入了解 Ti.Facebook 模块.由于易于更新,我们一直在 Android 上进行测试.
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.
这是在 Facebook SDK 上的解释,需要做什么来跟踪安装:
This is the explanation on Facebook SDK, what needs to be done, to track installs:
https://developers.facebook.com/docs/app-广告/sdk#install-tracking
这是在Android中登录安装的代码:
And this is the code to log in installs in Android:
protected void onResume() {
super.onResume();
AppEventsLogger.activateApp(this);
}
我搜遍了 Ti.Facebook 模块,没有找到对 AppEventsLogger.activateApp 的调用
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?
推荐答案
我已经修复了这个 bug 并向 Ti.Facebook 模块提交了 pull request.我们已经发布了一个版本来检查它,它从昨天下午开始就在那里,现在它可以为我们的启动正常工作.
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.
拉取请求:https://github.com/appcelerator-modules/ti.facebook/pull/37
这篇关于Facebook 为 Android 安装跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!