Android App Launch Source
I would like to know the source from which my app launch has happened like home screen or browser or Ok google. If browser what was the referer url without UTM. Is there a way to t
Solution 1:
Found out the solution.
intent.getExtras()
and activity.getReferrer()
gives all the data you want.
Solution 2:
You can set several separate different intent-filter
's in Your app for launch from browser, for launch from home screen, etc. and analyze it's intent data or action
. Something like that:
Intent intent = getIntent();
String action = intent.getAction();
if (action.equals("com.yourapp.intent.action.startfrombrowser")) {
...
} elseif (action.equals("com.yourapp.intent.action.startfromhomescreen")) {
...
}
Post a Comment for "Android App Launch Source"