{"action":"created","comment":{"url":"https://api.github.com/repos/Iterable/iterable-android-sdk/pulls/comments/223139117","pull_request_review_id":162204339,"id":223139117,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzEzOTExNw==","diff_hunk":"@@ -1323,6 +1324,57 @@ private void onLogIn() {\n         }\n     }\n \n+    private boolean getDDLChecked() {\n+        return getPreferences().getBoolean(IterableConstants.SHARED_PREFS_DDL_CHECKED_KEY, false);\n+    }\n+\n+    private void setDDLChecked(boolean value) {\n+        getPreferences().edit().putBoolean(IterableConstants.SHARED_PREFS_DDL_CHECKED_KEY, value).apply();\n+    }\n+\n+    private void checkForDeferredDeeplink() {\n+        if (!config.checkForDeferredDeeplink) {\n+            return;\n+        }\n+\n+        try {\n+            if (getDDLChecked()) {\n+                return;\n+            }\n+\n+            JSONObject requestJSON = DeviceInfo.createDeviceInfo(_applicationContext).toJSONObject();\n+\n+            IterableApiRequest request = new IterableApiRequest(_apiKey, IterableConstants.BASE_URL_LINKS,\n+                    IterableConstants.ENDPOINT_DDL_MATCH, requestJSON, IterableApiRequest.POST, new IterableHelper.SuccessHandler() {\n+                @Override\n+                public void onSuccess(JSONObject data) {\n+                    handleDDL(data);\n+                }\n+            }, new IterableHelper.FailureHandler() {\n+                @Override\n+                public void onFailure(String reason, JSONObject data) {\n+                    IterableLogger.e(TAG, \"Error while checking deferred deep link: \" + reason + \", response: \" + data);\n+                }\n+            });\n+            new IterableRequest().execute(request);\n+\n+        } catch (Exception e) {\n+            IterableLogger.e(TAG, \"Error while checking deferred deep link\", e);\n+        }\n+    }\n+\n+    private void handleDDL(JSONObject response) {\n+        IterableLogger.d(TAG, \"handleDDL: \" + response);\n+        try {\n+            MatchFpResponse matchFpResponse = MatchFpResponse.fromJSONObject(response);","path":"iterableapi/src/main/java/com/iterable/iterableapi/IterableApi.java","position":84,"original_position":84,"commit_id":"6a34aa1713f4b9f1bb1a4f6883817944c63eca42","original_commit_id":"6a34aa1713f4b9f1bb1a4f6883817944c63eca42","user":{"login":"vbabenkoru","id":37556649,"node_id":"MDQ6VXNlcjM3NTU2NjQ5","avatar_url":"https://avatars2.githubusercontent.com/u/37556649?v=4","gravatar_id":"","url":"https://api.github.com/users/vbabenkoru","html_url":"https://github.com/vbabenkoru","followers_url":"https://api.github.com/users/vbabenkoru/followers","following_url":"https://api.github.com/users/vbabenkoru/following{/other_user}","gists_url":"https://api.github.com/users/vbabenkoru/gists{/gist_id}","starred_url":"https://api.github.com/users/vbabenkoru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbabenkoru/subscriptions","organizations_url":"https://api.github.com/users/vbabenkoru/orgs","repos_url":"https://api.github.com/users/vbabenkoru/repos","events_url":"https://api.github.com/users/vbabenkoru/events{/privacy}","received_events_url":"https://api.github.com/users/vbabenkoru/received_events","type":"User","site_admin":false},"body":"Yeah, you're right; the fact that the URL handler was not being called was a side effect. :)","created_at":"2018-10-05T21:07:33Z","updated_at":"2018-10-05T21:07:34Z","html_url":"https://github.com/Iterable/iterable-android-sdk/pull/62#discussion_r223139117","pull_request_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/pulls/62","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Iterable/iterable-android-sdk/pulls/comments/223139117"},"html":{"href":"https://github.com/Iterable/iterable-android-sdk/pull/62#discussion_r223139117"},"pull_request":{"href":"https://api.github.com/repos/Iterable/iterable-android-sdk/pulls/62"}},"in_reply_to_id":223131373},"pull_request":{"url":"https://api.github.com/repos/Iterable/iterable-android-sdk/pulls/62","id":220688039,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwNjg4MDM5","html_url":"https://github.com/Iterable/iterable-android-sdk/pull/62","diff_url":"https://github.com/Iterable/iterable-android-sdk/pull/62.diff","patch_url":"https://github.com/Iterable/iterable-android-sdk/pull/62.patch","issue_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/issues/62","number":62,"state":"open","locked":false,"title":"[ITBL-6259] Deferred deep linking support","user":{"login":"vbabenkoru","id":37556649,"node_id":"MDQ6VXNlcjM3NTU2NjQ5","avatar_url":"https://avatars2.githubusercontent.com/u/37556649?v=4","gravatar_id":"","url":"https://api.github.com/users/vbabenkoru","html_url":"https://github.com/vbabenkoru","followers_url":"https://api.github.com/users/vbabenkoru/followers","following_url":"https://api.github.com/users/vbabenkoru/following{/other_user}","gists_url":"https://api.github.com/users/vbabenkoru/gists{/gist_id}","starred_url":"https://api.github.com/users/vbabenkoru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbabenkoru/subscriptions","organizations_url":"https://api.github.com/users/vbabenkoru/orgs","repos_url":"https://api.github.com/users/vbabenkoru/repos","events_url":"https://api.github.com/users/vbabenkoru/events{/privacy}","received_events_url":"https://api.github.com/users/vbabenkoru/received_events","type":"User","site_admin":false},"body":"- Added a new config option: `checkForDeferredDeeplink` to enable DDL\r\n- Send a device fingerprint on first launch\r\n- If matched, call the URL handler with the original link","created_at":"2018-10-05T12:40:41Z","updated_at":"2018-10-05T21:07:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42284859ef749dcf6fe5e260c1ae0153d56b567a","assignee":null,"assignees":[],"requested_reviewers":[{"login":"dontgitit","id":4284884,"node_id":"MDQ6VXNlcjQyODQ4ODQ=","avatar_url":"https://avatars0.githubusercontent.com/u/4284884?v=4","gravatar_id":"","url":"https://api.github.com/users/dontgitit","html_url":"https://github.com/dontgitit","followers_url":"https://api.github.com/users/dontgitit/followers","following_url":"https://api.github.com/users/dontgitit/following{/other_user}","gists_url":"https://api.github.com/users/dontgitit/gists{/gist_id}","starred_url":"https://api.github.com/users/dontgitit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dontgitit/subscriptions","organizations_url":"https://api.github.com/users/dontgitit/orgs","repos_url":"https://api.github.com/users/dontgitit/repos","events_url":"https://api.github.com/users/dontgitit/events{/privacy}","received_events_url":"https://api.github.com/users/dontgitit/received_events","type":"User","site_admin":false},{"login":"davidtruong","id":6599372,"node_id":"MDQ6VXNlcjY1OTkzNzI=","avatar_url":"https://avatars1.githubusercontent.com/u/6599372?v=4","gravatar_id":"","url":"https://api.github.com/users/davidtruong","html_url":"https://github.com/davidtruong","followers_url":"https://api.github.com/users/davidtruong/followers","following_url":"https://api.github.com/users/davidtruong/following{/other_user}","gists_url":"https://api.github.com/users/davidtruong/gists{/gist_id}","starred_url":"https://api.github.com/users/davidtruong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidtruong/subscriptions","organizations_url":"https://api.github.com/users/davidtruong/orgs","repos_url":"https://api.github.com/users/davidtruong/repos","events_url":"https://api.github.com/users/davidtruong/events{/privacy}","received_events_url":"https://api.github.com/users/davidtruong/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/pulls/62/commits","review_comments_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/pulls/62/comments","review_comment_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/issues/62/comments","statuses_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/statuses/6a34aa1713f4b9f1bb1a4f6883817944c63eca42","head":{"label":"Iterable:feature/ITBL-6259-deferred-deep-linking","ref":"feature/ITBL-6259-deferred-deep-linking","sha":"6a34aa1713f4b9f1bb1a4f6883817944c63eca42","user":{"login":"Iterable","id":5148773,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxNDg3NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/5148773?v=4","gravatar_id":"","url":"https://api.github.com/users/Iterable","html_url":"https://github.com/Iterable","followers_url":"https://api.github.com/users/Iterable/followers","following_url":"https://api.github.com/users/Iterable/following{/other_user}","gists_url":"https://api.github.com/users/Iterable/gists{/gist_id}","starred_url":"https://api.github.com/users/Iterable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Iterable/subscriptions","organizations_url":"https://api.github.com/users/Iterable/orgs","repos_url":"https://api.github.com/users/Iterable/repos","events_url":"https://api.github.com/users/Iterable/events{/privacy}","received_events_url":"https://api.github.com/users/Iterable/received_events","type":"Organization","site_admin":false},"repo":{"id":55455246,"node_id":"MDEwOlJlcG9zaXRvcnk1NTQ1NTI0Ng==","name":"iterable-android-sdk","full_name":"Iterable/iterable-android-sdk","private":false,"owner":{"login":"Iterable","id":5148773,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxNDg3NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/5148773?v=4","gravatar_id":"","url":"https://api.github.com/users/Iterable","html_url":"https://github.com/Iterable","followers_url":"https://api.github.com/users/Iterable/followers","following_url":"https://api.github.com/users/Iterable/following{/other_user}","gists_url":"https://api.github.com/users/Iterable/gists{/gist_id}","starred_url":"https://api.github.com/users/Iterable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Iterable/subscriptions","organizations_url":"https://api.github.com/users/Iterable/orgs","repos_url":"https://api.github.com/users/Iterable/repos","events_url":"https://api.github.com/users/Iterable/events{/privacy}","received_events_url":"https://api.github.com/users/Iterable/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Iterable/iterable-android-sdk","description":"Iterable's Android SDK. Receive and track pushes to Iterable from your Android app.","fork":false,"url":"https://api.github.com/repos/Iterable/iterable-android-sdk","forks_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/forks","keys_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/teams","hooks_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/hooks","issue_events_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/events","assignees_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/tags","blobs_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/languages","stargazers_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/stargazers","contributors_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/contributors","subscribers_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/subscribers","subscription_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/subscription","commits_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/merges","archive_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/downloads","issues_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/labels{/name}","releases_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/deployments","created_at":"2016-04-05T00:29:21Z","updated_at":"2018-10-02T21:55:36Z","pushed_at":"2018-10-05T12:40:41Z","git_url":"git://github.com/Iterable/iterable-android-sdk.git","ssh_url":"git@github.com:Iterable/iterable-android-sdk.git","clone_url":"https://github.com/Iterable/iterable-android-sdk.git","svn_url":"https://github.com/Iterable/iterable-android-sdk","homepage":"","size":579,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":1,"watchers":5,"default_branch":"master"}},"base":{"label":"Iterable:master","ref":"master","sha":"8264005106de4d4fe3adb2774d80877c0407f4e1","user":{"login":"Iterable","id":5148773,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxNDg3NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/5148773?v=4","gravatar_id":"","url":"https://api.github.com/users/Iterable","html_url":"https://github.com/Iterable","followers_url":"https://api.github.com/users/Iterable/followers","following_url":"https://api.github.com/users/Iterable/following{/other_user}","gists_url":"https://api.github.com/users/Iterable/gists{/gist_id}","starred_url":"https://api.github.com/users/Iterable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Iterable/subscriptions","organizations_url":"https://api.github.com/users/Iterable/orgs","repos_url":"https://api.github.com/users/Iterable/repos","events_url":"https://api.github.com/users/Iterable/events{/privacy}","received_events_url":"https://api.github.com/users/Iterable/received_events","type":"Organization","site_admin":false},"repo":{"id":55455246,"node_id":"MDEwOlJlcG9zaXRvcnk1NTQ1NTI0Ng==","name":"iterable-android-sdk","full_name":"Iterable/iterable-android-sdk","private":false,"owner":{"login":"Iterable","id":5148773,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxNDg3NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/5148773?v=4","gravatar_id":"","url":"https://api.github.com/users/Iterable","html_url":"https://github.com/Iterable","followers_url":"https://api.github.com/users/Iterable/followers","following_url":"https://api.github.com/users/Iterable/following{/other_user}","gists_url":"https://api.github.com/users/Iterable/gists{/gist_id}","starred_url":"https://api.github.com/users/Iterable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Iterable/subscriptions","organizations_url":"https://api.github.com/users/Iterable/orgs","repos_url":"https://api.github.com/users/Iterable/repos","events_url":"https://api.github.com/users/Iterable/events{/privacy}","received_events_url":"https://api.github.com/users/Iterable/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Iterable/iterable-android-sdk","description":"Iterable's Android SDK. Receive and track pushes to Iterable from your Android app.","fork":false,"url":"https://api.github.com/repos/Iterable/iterable-android-sdk","forks_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/forks","keys_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/teams","hooks_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/hooks","issue_events_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/events","assignees_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/tags","blobs_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/languages","stargazers_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/stargazers","contributors_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/contributors","subscribers_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/subscribers","subscription_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/subscription","commits_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/merges","archive_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/downloads","issues_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/labels{/name}","releases_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/Iterable/iterable-android-sdk/deployments","created_at":"2016-04-05T00:29:21Z","updated_at":"2018-10-02T21:55:36Z","pushed_at":"2018-10-05T12:40:41Z","git_url":"git://github.com/Iterable/iterable-android-sdk.git","ssh_url":"git@github.com:Iterable/iterable-android-sdk.git","clone_url":"https://github.com/Iterable/iterable-android-sdk.git","svn_url":"https://github.com/Iterable/iterable-android-sdk","homepage":"","size":579,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Iterable/iterable-android-sdk/pulls/62"},"html":{"href":"https://github.com/Iterable/iterable-android-sdk/pull/62"},"issue":{"href":"https://api.github.com/repos/Iterable/iterable-android-sdk/issues/62"},"comments":{"href":"https://api.github.com/repos/Iterable/iterable-android-sdk/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/Iterable/iterable-android-sdk/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/Iterable/iterable-android-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Iterable/iterable-android-sdk/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/Iterable/iterable-android-sdk/statuses/6a34aa1713f4b9f1bb1a4f6883817944c63eca42"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"vbabenkoru"}}