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

后端 未结 2 1347
悲&欢浪女
悲&欢浪女 2020-12-29 10:56

Let\'s say I have an Android App A that is installed in the user\'s device and I have an AppWidget with my App where we let other Android developers publish their App promot

2条回答
  •  情书的邮戳
    2020-12-29 11:26

    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....

提交回复
热议问题