This file contains 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
Branch *branch = [Branch getInstance]; | |
// Add this line to disable use of a hidden Safari View Controller | |
[branch disableCookieBasedMatching]; | |
[branch initSession .....]; |
This file contains 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
<script type="text/javascript"> | |
(function(b,r,a,n,c,h,_,s,d,k){if(!b[n]||!b[n]._q){for(;s<_.length;)c(h,_[s++]);d=r.createElement(a);d.async=1;d.src="https://cdn.branch.io/branch-latest.min.js";k=r.getElementsByTagName(a)[0];k.parentNode.insertBefore(d,k);b[n]=h}})(window,document,"script","branch",function(b,r){b[r]=function(){b._q.push([r,arguments])}},{_q:[],_v:1},"addListener applyCode banner closeBanner creditHistory credits data deepview deepviewCta first getCode init link logout redeem referrals removeListener sendSMS setBranchViewData setIdentity track validateCode".split(" "), 0); | |
branch.init('BRANCH KEY', function(err, data) { | |
// callback to handle err or data | |
}); | |
</script> |
This file contains 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
<html prefix="og: http://ogp.me/ns#"> | |
<head> | |
<title>The Rock (1996)</title> | |
<meta property="og:title" content="The Rock" /> | |
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" /> | |
<meta property="al:ios:app_store_id" content="342792525" /> | |
<meta property="al:ios:url" content="imdb://title/tt0117500" /> | |
<meta property="al:ios:app_name" content="IMDb Movies & TV" /> |
This file contains 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
Branch *branch = [Branch getInstance]; | |
[branch setIdentity:@"[email protected]"]; |
This file contains 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
BranchUniversalObject *branchUniversalObject = [[BranchUniversalObject alloc] initWithCanonicalIdentifier:@"sticker_id/12345"]; | |
branchUniversalObject.title = @"This hilarious sticker"; | |
branchUniversalObject.contentDescription = @"Check out this hilarious sticker in my sticker app, the best sticker app in the world."; | |
branchUniversalObject.imageUrl = @"https://mystickerapp.com/sticker-12345.png"; | |
[branchUniversalObject addMetadataKey:@"sticker_id" value:@"12345"]; | |
BranchLinkProperties *linkProperties = [[BranchLinkProperties alloc] init]; | |
linkProperties.feature = @"sharing"; | |
linkProperties.channel = @"imessage"; |