BranchMetrics / branch-deep-linking-public-api

The Branch Metrics public API for mobile deep linking / deeplinking applications. Branch helps mobile apps grow with deep links / deeplinks that power referral systems, sharing links and invites with full attribution and analytics.
https://dev.branch.io/references/http_api/
145 stars 18 forks source link

Branch Universal Links #11

Closed PaitoAnderson closed 8 years ago

PaitoAnderson commented 8 years ago

Can this API be used to generate Branch Universal Links?

aaustin commented 8 years ago

Yessir - Once you've configured universal links in the app settings on the Branch dashboard, every link created should be 'Universalized'! Happy linking

aaustin commented 8 years ago

Closing for now

PaitoAnderson commented 8 years ago

Thanks for the quick response @aaustin! I have always had Universal Links enabled in the Branch Dashboard, however the links I am getting back are like this: https://bnc.lt/l/xxxxxxxxxx.

branchdashboard

aaustin commented 8 years ago

Arrrr - legacy stuff. Can you insert 'sdk':'api' into the postbody? Let me see if I can remove that restriction in the next few days.

PaitoAnderson commented 8 years ago

So cool! That worked! Happy linking to you as well :)

jworm7 commented 8 years ago

I'm having the same issue. @aaustin, adding sdk : api to the deeplink data didnt help.

aaustin commented 8 years ago

Hmm - Let me look into this.

aaustin commented 8 years ago

@jworm7 I just tried a curl from my terminal on a test app which has universal links enabled on the dashboard. It correctly returned a Universal Link. Can you share your app key and curl structure?

jworm7 commented 8 years ago

So I just discovered that I was able to get a Universal Link if I don't include a custom link label. Is there a way to have a custom link label and a Universal Link?

aaustin commented 8 years ago

Ahh - you bet. Aliased links will work as universal links if you use a custom link domain. You just have to register a subdomain DNS as instructed on our settings page: https://dashboard.branch.io/#/settings/link