How to access google play store url parameter inside ionic application

my question is to access the url parameters of the google play store
so i want to access this “somecode” inside my application when the user download myapp

@mhartington can you help me with this?

Not sure this is possible. Couldn’t find anything about how to access this information

INSTALL_REFERRER Looks promising

But not sure how we can implement this in ionic… The broadcast receiver needs to be present somewhere in the app but where ?? Is the question

It would need to be done in a Cordova plugin, using native code.

If you use Google Analytics that should track the referrer for you automatically.

can you suggest a plugin for it?

There’s a google-analytics-plugin - also wrapped by ngCordova - if you simply want to to track installs in Google Analytics.

If you need to access the install referrer in your own code I’m afraid you’d need to write your own Cordova plugin.

1 Like

i got the referrer code which is getting saved in my sharedpreferences. do you have any idea on how to access it now?

This plugin? (Haven’t tried it.)

Can you share your experience? Have you made everything work?

1 Like

Hello! Did anyone successfully accessed parameters in the Google Play Store and Apple Store?

I am looking for the same solution, if you have solved it can you please share it?

Hi, any update on this?