android-branch-deep-linking-attribution
android-branch-deep-linking-attribution copied to clipboard
Trouble initializing Branch. Branch API Error: poor network connectivity.
I/BranchSDK: posting to https://api2.branch.io/v1/install I/BranchSDK: Post value = {"hardware_id":"bf63e4d7a06f52c2", "is_hardware_id_real":true,"brand":"OnePlus","model":"HD1901", "screen_dpi":420,"screen_height":2290,"screen_width":1080, "wifi":true,"ui_mode":"UI_MODE_TYPE_NORMAL","os":"Android", "os_version":29,"cpu_type":"aarch64","build":"HD1901_14_27", "locale":"en_IN","connection_type":"wifi","device_carrier":"airtel", "os_version_android":"10","country":"IN","language":"en", "local_ip":"10.1.45.26","app_version":"1.3.0", "facebook_app_link_checked":false,"is_referrable":0, "debug":false,"update":0,"latest_install_time":1589525769409, "latest_update_time":1589527302260,"first_install_time":1589525769409, "previous_update_time":0,"environment":"FULL_APP","cd":{"mv":"-1","pn":"in.app.debug"}, "metadata":{},"advertising_ids":{"aaid":"130ac551-83ef-4374-a80b-"},"lat_val":0, "google_advertising_id":"130ac551-83ef-4374-a80b","instrumentation":{"v1/install-qwt":"0","v1/install-brtt":"104"}, "sdk":"android5.0.1","branch_key":"key_test"} I/BranchSDK: Http connect exception: Failed to connect to api2.branch.io/0.0.0.0:443 E/MainActivity$onStart: Trouble initializing Branch. Branch API Error: poor network connectivity. Please try again later.
Working on Android Version : Pie Internet speed is around 100Mbps.
I am facing the same issue randomly. When it comes to the error I can reproduce the error easily. Every time I click on the deeplink I see the issue despite the fact there is no problem with network.
posting to https://api2.branch.io/v1/open
Post value = {"device_fingerprint_id":"661***9","identity_id":"807***26010","hardware_id":"***cc65","is_hardware_id_real":true,"brand":"samsung","model":"SM-G975F","screen_dpi":420,"screen_height":2047,"screen_width":1080,"wifi":false,"ui_mode":"UI_MODE_TYPE_NORMAL","os":"Android","os_version":29,"cpu_type":"aarch64","build":"QP1A.190711.020.G975FXXS5CTD1","locale":"en_AU","device_carrier":"YES OPTUS","os_version_android":"10","country":"AU","language":"en","app_version":"5.14","facebook_app_link_checked":false,"is_referrable":0,"debug":false,"update":1,"latest_install_time":1593650341249,"latest_update_time":1593661512734,"first_install_time":1593650341249,"previous_update_time":1593661283227,"environment":"FULL_APP","android_app_link_url":"https:\/\/app.optus.com.au\/email-verification?tokenId=f0be21bd***","external_intent_uri":"https:\/\/app.optus.com.au\/email-verification?tokenId=f0be***","cd":{"mv":"-1","pn":"au.com.optus.selfservice.debug"},"metadata":{},"lat_val":0,"google_advertising_id":"37618416-d4db-4581-b712-c7ba64566eb0","advertising_ids":{"aaid":"37618416-d4db-4581-b712-c7ba64566eb0"},"instrumentation":{"v1\/open-brtt":"11","v1\/open-qwt":"0"},"sdk":"android4.3.2","branch_key":"key_live_edCSYv2O5HeMCCJIyES1McocEvpPlWFp"}
Http connect exception: Unable to resolve host "api2.branch.io": No address associated with hostname
SplashActivity.kt:248) Trouble initializing Branch. Branch API Error: poor network connectivity. Please try again later.
initializing session on user's behalf (onActivityResumed called but SESSION_STATE = UNINITIALISED)
And it repeasts.
saw similar issues on Android 4 and turns out it's due to https://github.com/facebook/react-native/issues/23151. Hopefully this resolves the issue for some of you.
I am getting this same error on RN 0.62. @iamjaytong That issue is closed, how can that cause this issue?
@StarryFire From the thread, someone posted a gist with a workaround. It doesn't give many details on why it's needed, so here's Android's documentation about security provider.
One thing I'd change to the workaround is using implementation 'com.google.android.gms:play-services-safetynet:+' in the bundle.gradle rather than a specified version.
@StarryFire From the thread, someone posted a gist with a workaround. It doesn't give many details on why it's needed, so here's Android's documentation about security provider.
One thing I'd change to the workaround is using
implementation 'com.google.android.gms:play-services-safetynet:+'in thebundle.gradlerather than a specified version.
This workaround solved the problem for me.
@hamidsn Did you find a solution to the "Unable to resolve host "api2.branch.io" error. I have the same issue: #920
A lot of great insight for the Branch team to further investigate how we want our sdks to handle threading and queues in the future!
We are using flutter_branch_sdk.
dependencies:
flutter_branch_sdk: ^6.2.1
And we can find this is still happening in various versions of android devices. Any Idea why this is happening and what is the preferred solution for it?
If you have an AdBlock disable it.