Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS 12.4 and above does not show flushbar. #87

Closed
leononly opened this issue Sep 23, 2019 · 3 comments
Closed

IOS 12.4 and above does not show flushbar. #87

leononly opened this issue Sep 23, 2019 · 3 comments
Labels
waiting for user response Further information is requested

Comments

@leononly
Copy link

Please help.

@AndreHaueisen
Copy link
Owner

I have tested. It is working fine.
Can you paste your flutter doctor, please?

@AndreHaueisen AndreHaueisen added the waiting for user response Further information is requested label Sep 23, 2019
@cfchris
Copy link

cfchris commented Oct 16, 2019

I'm having the same issue on physical devices. I actually switched from overlay_support to this library because I had the same issue (alerts not showing up on iOS).

Here are some findings.

Works:

  • Android (on devices I tested)
  • flutter run iOS simulator (iPhone 7 Plus 12.2)
  • flutter run iOS simulator (iPhone 8 Plus 13.1)
  • flutter run on physical device (iPhone 7 Plus 13.1.2)
  • flutter run on physical device (iPhone X 13.1.2)

Doesn't Work

  • build pushed to TestFlight on physical device (iPhone 7 Plus 13.1.2)
  • build pushed to TestFlight on physical device (iPhone X 13.1.2)

Flutter Doctor

Chriss-MBP:classic-crm chrisp$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.9.1+hotfix.4, on Mac OS X 10.14.6 18G103, locale en-US)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/setup/#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, set ANDROID_HOME to that location.
      You may also want to add it to your PATH environment variable.

[✓] Xcode - develop for iOS and macOS (Xcode 11.1)
[!] Android Studio (not installed)
[✓] VS Code (version 1.39.1)
[✓] Connected device (1 available)

! Doctor found issues in 2 categories.

Calling Code

        Flushbar(
          // title, message, icon
          title: message['notification']['title'].toString(),
          message: message['notification']['body'].toString(),
          icon: Padding(
            padding: const EdgeInsets.only(left: 3.75),
            child: Icon(DpIcons.bell, size: 28.0, color: Colors.white),
          ),
          // config stuff
          backgroundColor: Theme.of(context).primaryColor,
          borderColor: Colors.black38,
          borderRadius: 4.0,
          dismissDirection: FlushbarDismissDirection.HORIZONTAL,
          flushbarPosition: FlushbarPosition.TOP,
          isDismissible: true,
          margin: EdgeInsets.all(6.0),
          shouldIconPulse: false,
        )..show(context);

@AndreHaueisen
Copy link
Owner

I'm sorry, but there is nothing platform-specific on this package. I have tested it and it is working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for user response Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants