flutter_branch_sdk
flutter_branch_sdk copied to clipboard
Internet Connectivity Error
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.app.app">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:name="${applicationName}"
android:label="Switch"
android:usesCleartextTraffic="true"
android:icon="@mipmap/launcher_icon">
<meta-data android:name="io.branch.sdk.BranchKey" android:value="key_live_keyvalue" />
<meta-data android:name="io.branch.sdk.BranchKey.test" android:value="key_live_keyvalue" />
<meta-data android:name="io.branch.sdk.TestMode" android:value="false" />
<meta-data android:name="com.google.android.geo.API_KEY"
android:value=""/>
<activity
android:name="com.yalantis.ucrop.UCropActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity
android:name=".MainActivity"
android:launchMode="singleTask"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<!-- Displays an Android View that continues showing the launch screen
Drawable until Flutter paints its first frame, then this splash
screen fades out. A splash screen is useful to avoid any visual
gap between the end of Android's launch screen and the painting of
Flutter's first frame. -->
<meta-data
android:name="io.flutter.embedding.android.SplashScreenDrawable"
android:resource="@drawable/launch_background"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<intent-filter>
<data android:scheme="scheme" android:host="open" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" android:host="domain.click" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="domain.click" />
</intent-filter>
<intent-filter>
<action android:name="NOTIFICATION_CLICK"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
</manifest>
This my AndroidManifest.xml file, while initializing this branch.io I am receiving this error.
Error : InitSession error: -111 - Trouble initializing Branch. Request to Branch server timed out. Please check your internet connectivity
Even though I have added Internet permission.
Please help me find it's solution. Thank you.
Same issue here, 4 days of investigation without a result
when i set FlutterBranchSdk.validateSDKIntegration(); i've got :
D/BranchSDK_Doctor(17410): 1. Verifying Branch instance creation ... D/BranchSDK_Doctor(17410): Passed D/BranchSDK_Doctor(17410): 2. Checking Branch keys ... D/BranchSDK_Doctor(17410): Passed D/eglCodecCommon(17410): setVertexArrayObject: set vao to 0 (0) 1 0 D/EGL_emulation(17410): eglMakeCurrent: 0xf1753f80: ver 3 0 (tinfo 0xdb04b3f0) D/eglCodecCommon(17410): setVertexArrayObject: set vao to 0 (0) 1 0 D/FlutterBranchSDK(17410): BranchReferralInitListener - error: Trouble initializing Branch. Request to Branch server timed out. Please check your internet connectivity I/BranchSDK(17410): processNextQueueItem, req ServerRequestGetAppConfig I/flutter (17410): dw D/FlutterBranchSDK(17410): onListen call I/flutter (17410): InitSession error: -111 - Trouble initializing Branch. Request to Branch server timed out. Please check your internet connectivity I/BranchSDK(17410): Http connect exception: thread interrupted
please. provide the information when opening the issue.
Desktop (please complete the following information):
- Flutter: version: [e.g. 2.2.3]
- Package version: [e.g. 3.3.0]
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Flutter: version: [e.g. 2.2.3]
- Package version: [e.g. 3.3.0]
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
if using android emulator make sure your browser is working.
on my Mac the internet doesn't work with my carrier's DNs settings.
I had to configure Google DNS.
Closed. No activity/response in the last 12 days. If necessary open again.