android-branch-deep-linking-attribution: bug: [android] Http connect exception for "api2.branch.io"

On initializing the branch SDK I get the following error:

I/BranchSDK: posting to https://api2.branch.io/v1/install
I/BranchSDK: Http connect exception: Unable to resolve host "api2.branch.io": No address associated with hostname

I could reproduce this error on a Samsung S10 with Android 9. It used to work before on the exact same device. No changes are made to the code as far as I am aware. I tried SDK implementation 'io.branch.sdk.android:library:5.0.3' through implementation 'io.branch.sdk.android:library:5.0.8'

On the other hand, on a Samsung 9 with Android 10 it does not produce any error at all.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (4 by maintainers)

Most upvoted comments

@tafelnl that is true, let me bring this to the team and see if on opens, the non-fail-able retries fail, we still complete the callback forwarding the referring url.

@brianinator It was a long time ago, so I’m not sure anymore. I think it might have been AdGuard.

You are correct, I also changed my mind about this. Branch should use a fallback when people are using an addblocker. Branch should in such a case just rely on the native deeplinking ability.