JeandeCampredon/react-native-referrer

Manually raising intent not working

Opened this issue · 0 comments

Hey,
I don't have a lot of background in react or android development, anyway need to get this done.

I followed the steps properly, but no luck testing it.

Suppose my package name is com.hassan.ashraf, and then manually trying to raise Intent is not working.

adb shell
am broadcast -a com.android.vending.INSTALL_REFERRER -n com.hassan.ashraf/com.jdc.reactlibrary.ReferrerReceiver --es "referrer" "utm_medium%hassanmedium%26utm_campaign%3Dhassanashraf"

and handling the above with

....
RNReferrer.getReferrer().then(referrer=> {
      console.log("referee is:- ", referrer);
});

doesn't works.

If this is not the correct way to test it, can you add some test steps in readme so that without going to play store it can be tested ?