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

[iOS] - SDK not validating the credentials when FlutterBranchSdk.validateSDKIntegration() is called. #317

Closed arthurgiani closed 5 months ago

arthurgiani commented 6 months ago

Describe the bug When running FlutterBranchSdk.validateSDKIntegration() on the main app method, branch SDK is not being able to retrieve the proper credentials.

To Reproduce Steps to reproduce the behavior:

  1. Run FlutterBranchSdk.validateSDKIntegration()
  2. See the screenshot below

Expected behavior A clear and concise description of what you expected to happen.

Screenshots Screenshot 2024-04-30 at 11 27 13

Screenshot 2024-04-30 at 11 40 43

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

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.19.6, on macOS 14.4.1 23E224 darwin-arm64, locale en-BR) [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.3) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.2) [✓] VS Code (version 1.88.1) [✓] Connected device (3 available) [✓] Network resources

RodrigoSMarques commented 6 months ago

You need to validate the settings on the dashboard, as stated in the message.

Review the settings in INFO.PLIST

This package calls Branch Native SDK functions on each platform, the problem reported is not in the Flutter plugin, but in the Native SDK.

Please open an issue in the platform repository:

Or open a support ticket for Branch at the link

vasa137 commented 6 months ago

Hey @arthurgiani any luck with this?

vasa137 commented 5 months ago

@arthurgiani The solution which works for me is defining both keys in Info.plist. I have multiple app flavors so I wanted just to provider either test or live key based on flavor. Unfortunately, library will not work if you don't specify both keys, no matter which flavor you use.

image

RodrigoSMarques commented 5 months ago

Closed. No activity/response in the last 15 days. If necessary open again.