Created
October 19, 2018 22:23
-
-
Save flurrydev/e63d711b3de39c362cbf593d41c735df to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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