I need to support the following scenario:
User receives the e-mail with link to my app.
If user already has the app installed the link should open the app passing some data in the intent to the launcher activity.
If the app is not installed yet the e-mail link should act as campaign referrer: direct user to Google Play to install the app with referrer url that is passed to my app after installation in referrer broadcast receiver.