diff --git a/CHANGELOG.md b/CHANGELOG.md index cbd5254c6..b84f6f6f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,13 @@ This project adheres to [Semantic Versioning](http://semver.org/). #### Fixed - nothing yet +## [2.1.3](https://github.com/Iterable/iterable-android-sdk/releases/tag/2.1.3) + _Released on 2017-02-22_ + +#### Added +- Added support for Android deeplink tracking +- `getAndTrackDeeplink` tracks a click and returns the destination url. + ## [2.1.2](https://github.com/Iterable/iterable-android-sdk/releases/tag/2.1.2) _Released on 2017-01-09_ diff --git a/README.md b/README.md index 2a20c5afa..a4ed6fe3b 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,24 @@ Also see our [push notification setup FAQs](http://support.iterable.com/hc/en-us See our [Deeplinking Setup Guide] (https://support.iterable.com/hc/en-us/articles/211676923) +From your application's [onCreate] (https://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)) call `getAndTrackDeeplink` along with a callback to handle the destination deeplink url. + +```java +protected void onCreate(Bundle savedInstanceState) { + String dataUri = this.getIntent().getDataString(); + IterableHelper.IterableActionHandler clickCallback = + new IterableHelper.IterableActionHandler(){ + @Override + public void execute(String result) { + Log.d("HandleDeeplink", "Redirected to: "+ result); + //handle deeplink here + } + }; + + IterableApi.getAndTrackDeeplink(dataUri, clickCallback); +} +``` + # License The MIT License diff --git a/iterableapi/build.gradle b/iterableapi/build.gradle index f4df3365e..1b28f0e94 100644 --- a/iterableapi/build.gradle +++ b/iterableapi/build.gradle @@ -40,7 +40,7 @@ ext { siteUrl = 'https://github.com/Iterable/iterable-android-sdk' gitUrl = 'https://github.com/Iterable/iterable-android-sdk.git' - libraryVersion = '2.1.2' + libraryVersion = '2.1.3' developerId = 'davidtruong' developerName = 'David Truong'