Skip to content

Instantly share code, notes, and snippets.

@flurrydev
Created October 19, 2018 22:23
Show Gist options
  • Select an option

  • Save flurrydev/e63d711b3de39c362cbf593d41c735df to your computer and use it in GitHub Desktop.

Select an option

Save flurrydev/e63d711b3de39c362cbf593d41c735df to your computer and use it in GitHub Desktop.
public class DeeplinkTestActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// get the data from the intent.
Intent intent = getIntent();
Uri data = intent.getData();
// deeplink - testapp://deeplink/example?key1=value1
if (data != null) {
// get the additional query params added to the deeplink
String value1 = data.getQueryParameter("key1"); // will return "value1"
}
// get the FlurryMessage from extras
FlurryMessage flurryMessage = FlurryMessaging.getFlurryMessageFromIntent(getIntent());
if (flurryMessage != null) {
// use as required
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment