How to test google play referrer api before publishing in Google play store?
You can test it without uploading on Playstore.
I did in following way.
- I have created urls like https://play.google.com/store/apps/details?id=fullpackagename&referrer=utm_source%3Dmobisoc&utm_content%3Dmobisoc&hl=en
- I have fired this url from my mail. It redirects to Playstore
- From command Prompt(using adb command) , I have installed desired apk.
- On Playstore, "install" button will be replaced with "open" button and I clicked on that. it is working
None mentioned in the Play Install Referrer API. So sadly, no. Try filing a feature request here.
Update
Beta test only works for referrer broadcast. I implement both installreferrer API
and broadcast at the same time, so the referrer is from broadcast instead of API.
Use Beta test provided by Google Play as following:
- Submit beta test APK file
- Add your account to the testers
- Open the detail page url of your APP with a referrer. The url can be like this according to a similar thread:
https://play.google.com/store/apps/details?id=com.mypackage&referrer=utm_source%3Dmobisoc%26utm_content%3D{transaction_id}%26utm_campaign%3D1
- If using Chrome, the url can be redirected to Play APP by clicking "Open in Play Market APP" button on the page.
- Download and install your APP in Play APP.
Your app should then receive a referrer after launch, and you can test it by reporting it or printing a log.
Alpha test should also work, but I have not test that.