android - Install Receiver's onReceiver never called -
i have custom receiver handles install_referrer intents when application installed. called once or twice during testing doesn't called @ all. using emulator testing , have gone through instructions in this test documentation broadcast install intent emulator. have made sure hooked android sdk adb emulator, should receiving broadcasts. in terminal, says broadcast succeeded, when launch app fresh install onreceive never called.
here skeleton of receiver:
public class customreceiver extends broadcastreceiver { @override public void onreceive(context context, intent intent) { //do stuff //log stuff } }
and here manifest:
<receiver android:name="path.to.customreceiver" android:exported="true"> <intent-filter> <action android:name="com.android.vending.install_referrer"/> </intent-filter> </receiver>
i've tried starting new emulator make sure wasn't blacklisting calls, , looked through documentation , posts find, nothing seems work. appreciate help.
the docs refer 2013. more recent docs suggest using installreferrerreceiver, designed handle intent:
the google play com.android.vending.install_referrer intent broadcast when app installed google play store. [installreferrerreceiver] listens intent, passing install referrer data gtm mobile apps , google analytics.
Comments
Post a Comment