Android App A wants to track Google Play referral data for Android App B installation

大憨熊 提交于 2019-11-30 05:03:51

the source code above is not correct.

the line

referrer = URLDecoder.decode(referrer, "x-www-form-urlencoded");

should be

referrer = URLDecoder.decode(referrer, "UTF-8");

the android documentation is not clear about this, but if you use x-www-form-urlencoded it will throw an unsupported encoding exception....

You can also use third party tracking like Mobile App Tracking from Tunes. This will help Android A app to get postbacks whenever Android B is installed. Third party tools like MAT,Appsflyer is one of the most common tools used to track installs.

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