Branch.io links in Facebook iOS App -


branch.io can't find app, when try open link in facebook app. redirects app store, when our app installed on device. i've read https://blog.branch.io/deep-linking-from-facebook-in-2017/ , implemented deepviews, there can't app. still opens app store.

i assume problem in our branch.io configuration, can't find it.

notes:

  1. i've implemented universal links , work fine (except problem facebook).
  2. when press on "open in safari" in facebook app, works fine.
  3. deepview shows "get app" instead of "open app", when app installed.

this how create link:

- (branchuniversalobject *)generatebranchobjectfor:(mbmediaobject *)object {     nsarray<nsstring *> *pathcomponents = [object.sharelink pathcomponents];     nsstring *uid = [[pathcomponents subarraywithrange:nsmakerange(pathcomponents.count-2, 2)] componentsjoinedbystring:@"/"];     branchuniversalobject *branchobject = [[branchuniversalobject alloc] initwithcanonicalidentifier:uid];     branchobject.title = object.name;     branchobject.imageurl = object.imageurl.absolutestring;     if ([object iskindofclass:mbsong.class]) {         branchobject.contentdescription = ((mbsong *)object).artistname;     } else if ([object iskindofclass:mbalbum.class]) {         branchobject.contentdescription = ((mbalbum *)object).artist.name;     }     return branchobject; }  - (branchlinkproperties *)generatebranchlinkpropertiesforobject:(mbmediaobject *)object channel:(nsstring *)channel {     branchlinkproperties *properties = [branchlinkproperties new];     properties.feature = @"sharing";     properties.channel = channel;     [properties addcontrolparam:@"$deeplink_path" withvalue:[[object.sharelink stringbyreplacingoccurrencesofstring:@"http://" withstring:@""] stringbyreplacingoccurrencesofstring:@"https://" withstring:@""]];     return properties; }  nsstring *shorturlstring = [[self generatebranchobjectfor:object] getshorturlwithlinkproperties:[self generatebranchlinkpropertiesforobject:object channel:@"twitter"]]; 

and our link settings:

amruta branch.io here:

due restriction on apple's side, when user taps on universal link on web browser (i.e. safari), if link has same domain current web page not use universal linking open app instead opens link in safari. can read more behavior here.

to overcome restriction, branch uses different domain link behind deepview button, domain being visited different current web page. link behind deepview button uses domain of format '-alternate.app.link'.

please ensure have added -alternate.app.link domain app in entitlements file. can check documentation providing information on how add domains here.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -