Laravel API push notifications to flutter

2,797

After searching, it turned out that OneSignal package is the best for flutter and web notifications. Hope this answer will help anyone struggling with notifications.

Share:
2,797
Wail Hayaly
Author by

Wail Hayaly

Updated on December 13, 2022

Comments

  • Wail Hayaly
    Wail Hayaly 11 months

    I want to send notifications from Laravel API with MySQL database to flutter app to tell the user that there are new products!, how can I do that without Firebase?

    • F-1
      F-1 over 4 years
      You can use pub.dev/packages/flutter_local_notifications then whenever you API returns new products you can write some app logic that will generate the notification for the user.
    • Sami Kanafani
      Sami Kanafani over 4 years
      you need something to trigger the application while it is killed. You need to use firebase on android and APNS on iOS. If the app is in the foreground or in the background you can use the flutter_local_notification plugin
    • Wail Hayaly
      Wail Hayaly over 4 years
      @SamiKanafani I don't want to use firebase at all!
    • Wail Hayaly
      Wail Hayaly over 4 years
      @F-1 that's local notifications, what about push notifications?
    • F-1
      F-1 over 4 years
      If you don't want to use firebase, you could use OneSignal - pub.dev/packages/onesignal_flutter