Skip to content

Error Andoird superwall flutter 2.1.0 #89

Open

Description

Just letting you know that Superwall makes my Android app crashing since I upgraded to 2.1.0

Image

I'm investigating with Cursor and it confirmed it's coming from Superwall
I haven't changed the code, only updated to 2.1.0 in pubspec.yaml

Image

Image

Yes confirmed !!

Since I reverted to superwall flutter 2.0.8, the android version works again

Activity

  1. ianrumac commented on May 12, 2025

    @ianrumac
    Contributor

    Hi @best-trading-indicator-tools .

    The issue you are sharing is related to version 2.0.8, as that code does not exist anymore in the version 2.1.0.
    Have you called flutter pub get after updating the version in the yaml?

    Could you share the issue you have with version 2.1.0 that you are discussing in these chats?

    Thanks!

  2. best-trading-indicator-tools commented on May 12, 2025

    @best-trading-indicator-tools
    Author

    The issue is that with version 2.1.0, the Android app was crashing right on app launch

    So I had to revert to superwall flutter package 2.0.8

    Hi @best-trading-indicator-tools .

    The issue you are sharing is related to version 2.0.8, as that code does not exist anymore in the version 2.1.0. Have you called flutter pub get after updating the version in the yaml?

    Could you share the issue you have with version 2.1.0 that you are discussing in these chats?

    Thanks!

    Now testing that one
    https://pub.dev/packages/superwallkit_flutter/versions/2.2.0-beta.2

    Same issue
    The android app crashes upon launch

    Image
  3. ianrumac commented on May 13, 2025

    @ianrumac
    Contributor

    Hi @best-trading-indicator-tools - the issue you are showing is not possible with 2.1.0 as that code does not exist anymore in 2.1.0.

    Considering it's crashing on startup, it might be crashing due to trying to access Superwall.shared before calling Superwall.configure.

    Could it be something similar in your case?
    Could you share the relevant part of the code where you setup Superwall and where you first access Superwall.shared?

  4. best-trading-indicator-tools commented on May 13, 2025

    @best-trading-indicator-tools
    Author

    Gotcha

    I'm doing the Superwall.configure before the Superwall.shared

    Image

    I don't have the crash with 2.0.8 that being said
    I have it with 2.1.0 and beyond

  5. ianrumac commented on May 13, 2025

    @ianrumac
    Contributor

    @best-trading-indicator-tools does the try/catch block catch any issues, could you see if a stacktrace pops up there that would be indicative of the issue?

  6. best-trading-indicator-tools commented on May 13, 2025

    @best-trading-indicator-tools
    Author

    Nope, catch nothing
    The app crashes without entering in this catch
    Very weird
    Does the flutter 2.2.0-beta.2 works on android for you guys?

  7. best-trading-indicator-tools commented on May 14, 2025

    @best-trading-indicator-tools
    Author

    So were you able to reproduce?
    On all android devices, I see in the google playstore that the app crashes
    When testing on an android simulator, superwall 2.1.0 and beyond make my android app crashing on start
    No error message, nothing
    And I have the Superwall.shared after the Superwall.configure
    Were you able to reproduce this issue?

  8. ianrumac commented on May 15, 2025

    @ianrumac
    Contributor

    Hey @best-trading-indicator-tools !

    Unfortunately no luck reproducing it. Could you try running our example project in this repository and letting us know if it works for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions