Answer the question
In order to leave comments, you need to log in
App gets com.android.vending.INSTALL_REFERRER intent from adb shell but not from Google Play
During installation, I need to get referral parameters from a link in the Google Play market in the application, by and large similar to Google Analytics ("&referrer=some_parameters"). With ` am broadcast ` the intent is successfully sent, but when installed from Google Play, nothing happens.
Manifest piece:
<activity
android:name="com.catgirl.testapp.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver android:name="com.catgirl.testapp.Receiver" android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
am broadcast -a com.android.vending.INSTALL_REFERRER -n
com.catgirl.testapp/.Receiver --es "referrer" "my referrer"
https://play.google.com/store/apps/details?id=com.catgirl.testapp
&referrer=utm_source%3Dargument1%26utm_medium%3Dargument2
W/ActivityManager(472): Permission denied:
checkComponentPermission() owningUid=10053
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question