flutter_branch_sdk icon indicating copy to clipboard operation
flutter_branch_sdk copied to clipboard

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

Open arthurgiani opened this issue 1 year ago • 1 comments

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):

  • Flutter: version: [3.19.6]

  • Package version: [e.g. 7.3.0]

  • OS: [e.g. iOS17.4, iPhone 15 Pro Max]

  • Device: [iPhone 15 Pro Max]

  • Additional context

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

arthurgiani avatar Apr 30 '24 14:04 arthurgiani

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

RodrigoSMarques avatar Apr 30 '24 22:04 RodrigoSMarques

Hey @arthurgiani any luck with this?

vasa137 avatar May 12 '24 11:05 vasa137

@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

vasa137 avatar May 18 '24 17:05 vasa137

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

RodrigoSMarques avatar Jun 04 '24 12:06 RodrigoSMarques