RodrigoSMarques / flutter_branch_sdk

Flutter Plugin for create deep link using Branch Metrics SDK. This plugin provides a cross-platform (iOS, Android, Web).
https://branch.io
MIT License
100 stars 90 forks source link

Android validateSDKIntegration fails with Uri Scheme wildcard host #241

Closed Alqueraf closed 1 year ago

Alqueraf commented 1 year ago

Describe the bug When running FlutterBranchSdk.validateSDKIntegration(), step "6. Verifying intent for receiving URI scheme." fails when the intent host uses a wildcard "*". This contradicts the Android SDK documentation: https://help.branch.io/developers-hub/docs/android-basic-integration#configure-app

<!-- If utilizing $deeplink_path please explicitly declare your hosts, or utilize a wildcard(*) -->
<data android:scheme="${branchScheme}" android:host="*" />

To Reproduce Steps to reproduce the behavior:

  1. Set your URI Scheme intent-filter to use host value '' (ie: `<data android:scheme="${branchScheme}" android:host="" />`)
  2. Run Flutter method FlutterBranchSdk.validateSDKIntegration().
  3. Observe the code expects open as the host value.
  4. Observe step 6 fails with error: ** ERROR ** : Uri scheme 'xxxxxx://' specified in Branch dashboard doesn't match with the deep link intent in manifest file

Expected behavior

Screenshots

image image

Smartphone (Please complete the following information. remove session if not platform):

RodrigoSMarques commented 1 year ago

This package calls Branch Native SDK functions on each platform. The problem reported is not in the Flutter package, but in the Native SDK. Please open an issue in the platform repository: