flutter_branch_sdk icon indicating copy to clipboard operation
flutter_branch_sdk copied to clipboard

crash on ios plugin v8.0.3

Open heshesh2010 opened this issue 1 year ago • 7 comments

Hi , when I create share link on ios real device i got the attached error in xcode log

Screenshot 2024-07-06 at 1 12 07 AM

flutter doctor

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-x64, locale en-EG) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.4) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.2) [✓] VS Code (version 1.90.2) [✓] Connected device (3 available) [✓] Network resources

• No issues found!

heshesh2010 avatar Jul 05 '24 22:07 heshesh2010

Please do not remove the additional information that is requested when opening the issue, otherwise your issue will be closed due to lack of detailed information.

Which package version? Which operating system version?

Did you call FlutterBranchSdk.validateSDKIntegration() in your project? Did the result return successfully?

From your screenshot, both the error and url variables are null. This condition should never occur.

Your project has some configuration error.

RodrigoSMarques avatar Jul 06 '24 03:07 RodrigoSMarques

Please do not remove the additional information that is requested when opening the issue, otherwise your issue will be closed due to lack of detailed information.

Which package version? Which operating system version?

Did you call FlutterBranchSdk.validateSDKIntegration() in your project? Did the result return successfully?

From your screenshot, both the error and url variables are null. This condition should never occur.

Your project has some configuration error.

hi,

running on plugin v8.0.3 ios device v : 17.5.1

Did you call FlutterBranchSdk.validateSDKIntegration() in your project? Did the result return successfully? yes, see the screenshot IMG_4667

heshesh2010 avatar Jul 06 '24 11:07 heshesh2010

your project's uri scheme is strange. should be displayed as in the example

image

Not "https"

RodrigoSMarques avatar Jul 06 '24 11:07 RodrigoSMarques

Hi ,

It was working before and here is branch dashboard configs

image

heshesh2010 avatar Jul 06 '24 11:07 heshesh2010

In my opinion, https is not a schema for an application. it should be the name of the Application or similar to the name. This may be causing an error in the branch's SDK. my first suggestion would be to review the Dashboard and project settings to change this.

RodrigoSMarques avatar Jul 06 '24 11:07 RodrigoSMarques

If the problem persists after the change, you will have to open an issue with Branch. As the SDK is returning an error, only they can evaluate it.

RodrigoSMarques avatar Jul 06 '24 11:07 RodrigoSMarques

If the problem persists after the change, you will have to open an issue with Branch. As the SDK is returning an error, only they can evaluate it.

changed the url scheme and I got same error

IMG_4668

heshesh2010 avatar Jul 06 '24 12:07 heshesh2010

Code correction made to avoid crash if the URL is not returned

Available in version 8.0.4

RodrigoSMarques avatar Jul 13 '24 04:07 RodrigoSMarques