{"action":"created","comment":{"url":"https://api.github.com/repos/BranchMetrics/documentation/pulls/comments/51340477","id":51340477,"diff_hunk":"@@ -0,0 +1,44 @@\n+{% highlight objc %}\n+\n+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {\n+\n+    Branch *branch = [Branch getInstance];\n+\n+    [branch initSessionWithLaunchOptions:launchOptions andRegisterDeepLinkHandler:^(NSDictionary *params, NSError *error) {\n+\n+    if (!error) {\n+        if (params[@\"$deeplink_path\"] && self.branchUniversalLink){\n+            self.branchUniversalLink = NO;\n+            NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@\"your-uri-scheme://%@\", params[@\"$deeplink_path\"]]];\n+            // handle the URL!\n+            [self routeUrl:url];\n+        }\n+    }\n+}];\n+    return YES;\n+}\n+\n+//Entry point for iOS 8.X users and lower \n+\n+-(BOOL) application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation\n+{\n+    BOOL handledByBranch = [[Branch getInstance] handleDeepLink:url];\n+    \n+    // ... your other logic here, such as ...\n+    [self routeUrl:url];\n+\n+    return handledByBranch;\n+}\n+\n+//Entry point for iOS 9.X users\n+\n+- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray *restorableObjects))restorationHandler {\n+\n+    BOOL handledByBranch = [[Branch getInstance] continueUserActivity:userActivity];\n+    if (handledByBranch){","path":"ingredients/sdk_setup/ios9_deep_link_path.md","position":38,"original_position":38,"commit_id":"b9025eb66bcfe560a748d37a79e2de935b7c0eab","original_commit_id":"b9025eb66bcfe560a748d37a79e2de935b7c0eab","user":{"login":"aaustin","id":1332632,"avatar_url":"https://avatars.githubusercontent.com/u/1332632?v=3","gravatar_id":"","url":"https://api.github.com/users/aaustin","html_url":"https://github.com/aaustin","followers_url":"https://api.github.com/users/aaustin/followers","following_url":"https://api.github.com/users/aaustin/following{/other_user}","gists_url":"https://api.github.com/users/aaustin/gists{/gist_id}","starred_url":"https://api.github.com/users/aaustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaustin/subscriptions","organizations_url":"https://api.github.com/users/aaustin/orgs","repos_url":"https://api.github.com/users/aaustin/repos","events_url":"https://api.github.com/users/aaustin/events{/privacy}","received_events_url":"https://api.github.com/users/aaustin/received_events","type":"User","site_admin":false},"body":"please add a space between `) {`","created_at":"2016-01-30T04:56:22Z","updated_at":"2016-01-30T04:56:22Z","html_url":"https://github.com/BranchMetrics/documentation/pull/173#discussion_r51340477","pull_request_url":"https://api.github.com/repos/BranchMetrics/documentation/pulls/173","_links":{"self":{"href":"https://api.github.com/repos/BranchMetrics/documentation/pulls/comments/51340477"},"html":{"href":"https://github.com/BranchMetrics/documentation/pull/173#discussion_r51340477"},"pull_request":{"href":"https://api.github.com/repos/BranchMetrics/documentation/pulls/173"}}},"pull_request":{"url":"https://api.github.com/repos/BranchMetrics/documentation/pulls/173","id":57713593,"html_url":"https://github.com/BranchMetrics/documentation/pull/173","diff_url":"https://github.com/BranchMetrics/documentation/pull/173.diff","patch_url":"https://github.com/BranchMetrics/documentation/pull/173.patch","issue_url":"https://api.github.com/repos/BranchMetrics/documentation/issues/173","number":173,"state":"open","locked":false,"title":"documentation for Universal Links and old URI paths","user":{"login":"rubinsingh","id":984611,"avatar_url":"https://avatars.githubusercontent.com/u/984611?v=3","gravatar_id":"","url":"https://api.github.com/users/rubinsingh","html_url":"https://github.com/rubinsingh","followers_url":"https://api.github.com/users/rubinsingh/followers","following_url":"https://api.github.com/users/rubinsingh/following{/other_user}","gists_url":"https://api.github.com/users/rubinsingh/gists{/gist_id}","starred_url":"https://api.github.com/users/rubinsingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubinsingh/subscriptions","organizations_url":"https://api.github.com/users/rubinsingh/orgs","repos_url":"https://api.github.com/users/rubinsingh/repos","events_url":"https://api.github.com/users/rubinsingh/events{/privacy}","received_events_url":"https://api.github.com/users/rubinsingh/received_events","type":"User","site_admin":false},"body":"@derrickstaten this PR talks about how to handle Universal Links with old URI schemes.","created_at":"2016-01-29T22:45:29Z","updated_at":"2016-01-30T04:56:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8de4450c2461b09385d3869f4330135566bba712","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BranchMetrics/documentation/pulls/173/commits","review_comments_url":"https://api.github.com/repos/BranchMetrics/documentation/pulls/173/comments","review_comment_url":"https://api.github.com/repos/BranchMetrics/documentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BranchMetrics/documentation/issues/173/comments","statuses_url":"https://api.github.com/repos/BranchMetrics/documentation/statuses/b9025eb66bcfe560a748d37a79e2de935b7c0eab","head":{"label":"BranchMetrics:deeplink_path","ref":"deeplink_path","sha":"b9025eb66bcfe560a748d37a79e2de935b7c0eab","user":{"login":"BranchMetrics","id":7772941,"avatar_url":"https://avatars.githubusercontent.com/u/7772941?v=3","gravatar_id":"","url":"https://api.github.com/users/BranchMetrics","html_url":"https://github.com/BranchMetrics","followers_url":"https://api.github.com/users/BranchMetrics/followers","following_url":"https://api.github.com/users/BranchMetrics/following{/other_user}","gists_url":"https://api.github.com/users/BranchMetrics/gists{/gist_id}","starred_url":"https://api.github.com/users/BranchMetrics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BranchMetrics/subscriptions","organizations_url":"https://api.github.com/users/BranchMetrics/orgs","repos_url":"https://api.github.com/users/BranchMetrics/repos","events_url":"https://api.github.com/users/BranchMetrics/events{/privacy}","received_events_url":"https://api.github.com/users/BranchMetrics/received_events","type":"Organization","site_admin":false},"repo":{"id":32894178,"name":"documentation","full_name":"BranchMetrics/documentation","owner":{"login":"BranchMetrics","id":7772941,"avatar_url":"https://avatars.githubusercontent.com/u/7772941?v=3","gravatar_id":"","url":"https://api.github.com/users/BranchMetrics","html_url":"https://github.com/BranchMetrics","followers_url":"https://api.github.com/users/BranchMetrics/followers","following_url":"https://api.github.com/users/BranchMetrics/following{/other_user}","gists_url":"https://api.github.com/users/BranchMetrics/gists{/gist_id}","starred_url":"https://api.github.com/users/BranchMetrics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BranchMetrics/subscriptions","organizations_url":"https://api.github.com/users/BranchMetrics/orgs","repos_url":"https://api.github.com/users/BranchMetrics/repos","events_url":"https://api.github.com/users/BranchMetrics/events{/privacy}","received_events_url":"https://api.github.com/users/BranchMetrics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BranchMetrics/documentation","description":"The Branch Metrics Developer Documentation. Branch helps mobile apps grow with deep links / deeplinks that power referral systems, sharing links and invites with full attribution and analytics.","fork":false,"url":"https://api.github.com/repos/BranchMetrics/documentation","forks_url":"https://api.github.com/repos/BranchMetrics/documentation/forks","keys_url":"https://api.github.com/repos/BranchMetrics/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BranchMetrics/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BranchMetrics/documentation/teams","hooks_url":"https://api.github.com/repos/BranchMetrics/documentation/hooks","issue_events_url":"https://api.github.com/repos/BranchMetrics/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/BranchMetrics/documentation/events","assignees_url":"https://api.github.com/repos/BranchMetrics/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/BranchMetrics/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/BranchMetrics/documentation/tags","blobs_url":"https://api.github.com/repos/BranchMetrics/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BranchMetrics/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BranchMetrics/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/BranchMetrics/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BranchMetrics/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/BranchMetrics/documentation/languages","stargazers_url":"https://api.github.com/repos/BranchMetrics/documentation/stargazers","contributors_url":"https://api.github.com/repos/BranchMetrics/documentation/contributors","subscribers_url":"https://api.github.com/repos/BranchMetrics/documentation/subscribers","subscription_url":"https://api.github.com/repos/BranchMetrics/documentation/subscription","commits_url":"https://api.github.com/repos/BranchMetrics/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/BranchMetrics/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/BranchMetrics/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/BranchMetrics/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/BranchMetrics/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/BranchMetrics/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BranchMetrics/documentation/merges","archive_url":"https://api.github.com/repos/BranchMetrics/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BranchMetrics/documentation/downloads","issues_url":"https://api.github.com/repos/BranchMetrics/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/BranchMetrics/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/BranchMetrics/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/BranchMetrics/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BranchMetrics/documentation/labels{/name}","releases_url":"https://api.github.com/repos/BranchMetrics/documentation/releases{/id}","deployments_url":"https://api.github.com/repos/BranchMetrics/documentation/deployments","created_at":"2015-03-25T22:17:58Z","updated_at":"2016-01-24T14:59:37Z","pushed_at":"2016-01-30T03:22:55Z","git_url":"git://github.com/BranchMetrics/documentation.git","ssh_url":"git@github.com:BranchMetrics/documentation.git","clone_url":"https://github.com/BranchMetrics/documentation.git","svn_url":"https://github.com/BranchMetrics/documentation","homepage":"http://dev.branch.io","size":44513,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":4,"forks":8,"open_issues":4,"watchers":14,"default_branch":"master"}},"base":{"label":"BranchMetrics:master","ref":"master","sha":"bffed2a9fb8793eab3884919a0a08938644e58fe","user":{"login":"BranchMetrics","id":7772941,"avatar_url":"https://avatars.githubusercontent.com/u/7772941?v=3","gravatar_id":"","url":"https://api.github.com/users/BranchMetrics","html_url":"https://github.com/BranchMetrics","followers_url":"https://api.github.com/users/BranchMetrics/followers","following_url":"https://api.github.com/users/BranchMetrics/following{/other_user}","gists_url":"https://api.github.com/users/BranchMetrics/gists{/gist_id}","starred_url":"https://api.github.com/users/BranchMetrics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BranchMetrics/subscriptions","organizations_url":"https://api.github.com/users/BranchMetrics/orgs","repos_url":"https://api.github.com/users/BranchMetrics/repos","events_url":"https://api.github.com/users/BranchMetrics/events{/privacy}","received_events_url":"https://api.github.com/users/BranchMetrics/received_events","type":"Organization","site_admin":false},"repo":{"id":32894178,"name":"documentation","full_name":"BranchMetrics/documentation","owner":{"login":"BranchMetrics","id":7772941,"avatar_url":"https://avatars.githubusercontent.com/u/7772941?v=3","gravatar_id":"","url":"https://api.github.com/users/BranchMetrics","html_url":"https://github.com/BranchMetrics","followers_url":"https://api.github.com/users/BranchMetrics/followers","following_url":"https://api.github.com/users/BranchMetrics/following{/other_user}","gists_url":"https://api.github.com/users/BranchMetrics/gists{/gist_id}","starred_url":"https://api.github.com/users/BranchMetrics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BranchMetrics/subscriptions","organizations_url":"https://api.github.com/users/BranchMetrics/orgs","repos_url":"https://api.github.com/users/BranchMetrics/repos","events_url":"https://api.github.com/users/BranchMetrics/events{/privacy}","received_events_url":"https://api.github.com/users/BranchMetrics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BranchMetrics/documentation","description":"The Branch Metrics Developer Documentation. Branch helps mobile apps grow with deep links / deeplinks that power referral systems, sharing links and invites with full attribution and analytics.","fork":false,"url":"https://api.github.com/repos/BranchMetrics/documentation","forks_url":"https://api.github.com/repos/BranchMetrics/documentation/forks","keys_url":"https://api.github.com/repos/BranchMetrics/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BranchMetrics/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BranchMetrics/documentation/teams","hooks_url":"https://api.github.com/repos/BranchMetrics/documentation/hooks","issue_events_url":"https://api.github.com/repos/BranchMetrics/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/BranchMetrics/documentation/events","assignees_url":"https://api.github.com/repos/BranchMetrics/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/BranchMetrics/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/BranchMetrics/documentation/tags","blobs_url":"https://api.github.com/repos/BranchMetrics/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BranchMetrics/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BranchMetrics/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/BranchMetrics/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BranchMetrics/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/BranchMetrics/documentation/languages","stargazers_url":"https://api.github.com/repos/BranchMetrics/documentation/stargazers","contributors_url":"https://api.github.com/repos/BranchMetrics/documentation/contributors","subscribers_url":"https://api.github.com/repos/BranchMetrics/documentation/subscribers","subscription_url":"https://api.github.com/repos/BranchMetrics/documentation/subscription","commits_url":"https://api.github.com/repos/BranchMetrics/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/BranchMetrics/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/BranchMetrics/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/BranchMetrics/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/BranchMetrics/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/BranchMetrics/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BranchMetrics/documentation/merges","archive_url":"https://api.github.com/repos/BranchMetrics/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BranchMetrics/documentation/downloads","issues_url":"https://api.github.com/repos/BranchMetrics/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/BranchMetrics/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/BranchMetrics/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/BranchMetrics/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BranchMetrics/documentation/labels{/name}","releases_url":"https://api.github.com/repos/BranchMetrics/documentation/releases{/id}","deployments_url":"https://api.github.com/repos/BranchMetrics/documentation/deployments","created_at":"2015-03-25T22:17:58Z","updated_at":"2016-01-24T14:59:37Z","pushed_at":"2016-01-30T03:22:55Z","git_url":"git://github.com/BranchMetrics/documentation.git","ssh_url":"git@github.com:BranchMetrics/documentation.git","clone_url":"https://github.com/BranchMetrics/documentation.git","svn_url":"https://github.com/BranchMetrics/documentation","homepage":"http://dev.branch.io","size":44513,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":4,"forks":8,"open_issues":4,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BranchMetrics/documentation/pulls/173"},"html":{"href":"https://github.com/BranchMetrics/documentation/pull/173"},"issue":{"href":"https://api.github.com/repos/BranchMetrics/documentation/issues/173"},"comments":{"href":"https://api.github.com/repos/BranchMetrics/documentation/issues/173/comments"},"review_comments":{"href":"https://api.github.com/repos/BranchMetrics/documentation/pulls/173/comments"},"review_comment":{"href":"https://api.github.com/repos/BranchMetrics/documentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BranchMetrics/documentation/pulls/173/commits"},"statuses":{"href":"https://api.github.com/repos/BranchMetrics/documentation/statuses/b9025eb66bcfe560a748d37a79e2de935b7c0eab"}}}}