Branch.io feature request: Prevent long links in showShareSheetWithLinkProperties

Sometimes when sharing links with showShareSheetWithLinkProperties if you don’t have a internet connection you will get a very long link. From what I understand it is the expected behaviour.

These links are very unaesthetic and doesn’t always behave properly (e.g. link text not displayed properly).

For this reason it would be nice to have two things:

  1. A way (completionHandler for example) to not display the share sheet in case the link will be in the long format
  2. Instead of this long format provide the link with the parameters passed as parameters such as:
    https://[branchsubdomain]?
    	%24deeplink_path=article%2Fjan%2F123&
    	%24fallback_url=https%3A%2F%2Fgoogle.com&
    	channel=facebook&
    	feature=affiliate&
    	user_id=4562&
    	name=Alex
Apponaut — Other
2 Answer(s)
Answered on August 3, 2016.

That is a good suggestion. The long link in no network situations is expected behavior and we return an error code for the base getShortUrl method, but not for the showShareSheet version.

I’ll pass this along. Thanks for the recommendation!

Branch — Developer
Commented on September 1, 2016.

Hi Alex,

Are there any updates to this? A lot of customers have been complaining about the long urls that are generated through the share sheet.

Thanks a lot

Apponaut — Other
Commented on September 1, 2016.

Thanks for writing in. I wanted to send you off a quick note let you know where we’re at.

The long links are generated when the sdk is unable to reach the API servers.

We experienced a short outage on our API this morning (links were not affected). We’re currently back up. You can keep track of our status here: http://status.branch.io/

I’m really sorry for this experience. We take our uptime incredibly seriously. The growth we’ve seen in the past few weeks has been staggering and we’re sprinting to try and keep up.

Thanks!

Developer
Commented on October 10, 2016.

Are there any updates to this? Any plans on integrating this change? Our short link creation seem to fail a lot and we get a lot of customers complaining about the extremely long (and sometimes unclickable) link

Apponaut — Other
Commented on October 17, 2016.

If your short link creating fails far too often, then I’d suggest that you write in to our integrations team here. We’ve not had outages on our API and the last instance when it was down, we brought it back quickly.

Developer
Commented on October 18, 2016.

Hi Ankit,

it will fail every time a user has a bad connection. The feature request is just to be able to handle this case just as I am able to do in the getShortURL method (as explained by Alex above)

Apponaut — Other
Commented on October 18, 2016.

You can build your fail safe logic around this when the user has bad connection and the link returned is a long one. You can either retry or prompt the user about poor internet connectivity. It is completely up to you.

Developer
Answered on October 17, 2016.

If your short link creating fails far too often, then I’d suggest that you write in to our integrations team here. We’ve not had outages on our API recently and the last instance when it was down, we brought it back quickly.

Developer