Coder Social home page Coder Social logo

snehasis4321 / flutter_local_notifications_tutorial Goto Github PK

View Code? Open in Web Editor NEW
25.0 1.0 12.0 290 KB

display local notifications in flutter app

Kotlin 0.24% Swift 4.10% Objective-C 0.06% Dart 18.37% CMake 30.44% C++ 36.99% C 2.28% HTML 3.03% Ruby 4.48%
dart flutter flutter-apps flutter-local-notifications

flutter_local_notifications_tutorial's Introduction

LOCAL NOTIFICATIONS (2)

Local Notification Flutter Tutorial

the repository containes the code to show local notification in the flutter app

๐Ÿ“บ Video Link

๐Ÿ“ฑ For IOS working -

need todo some changes in AppDelegate.swift file located in ios/Runner/AppDelegate.swift please check the file here.

๐Ÿ›  Update -

you might see some difference between this code and code showed in the video , cause some issue have been fixed.

  • now we using named routes for navigation
  • now the app can open another page with the payload on click on notification from the terminated state.

๐Ÿ‘จโ€๐Ÿ’ป Topics -

  • Simple Notification
  • Periodic Notification
  • Scheduling Notification
  • Cancel specific channel notification
  • Cancel all notification at once

flutter_local_notifications_tutorial's People

Contributors

snehasis4321 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

flutter_local_notifications_tutorial's Issues

Foreground notification not working on IOS

Hello in android the notification shows when the app is on foreground but on IOS when the app is on foreground the notification does not appear.

on background or when app Is terminated it works fine on IOS but on Foreground it doesn't show.

[Fixed] Periodic Notifications Not working on Android Devices.

I am using POCO X2 Device.
MIUI Global 12.5.6
Android Version 11

I cloned your repo and ran this project in my poco x2. Schedule, Simple just working fine but not the periodic notifications.

I add this line. After that periodic notification are working fine.

androidScheduleMode: AndroidScheduleMode.exactAllowWhileIdle,

// to show periodic notification at regular interval

static Future showPeriodicNotifications({
   required String title,
   required String body,
   required String payload,
 }) async {
   const AndroidNotificationDetails androidNotificationDetails =
       AndroidNotificationDetails('channel 2', 'your channel name',
           channelDescription: 'your channel description',
           importance: Importance.max,
           priority: Priority.high,
           ticker: 'ticker');
   const NotificationDetails notificationDetails =
       NotificationDetails(android: androidNotificationDetails);
   await _flutterLocalNotificationsPlugin.periodicallyShow(
     1,
     title,
     body,
     RepeatInterval.everyMinute,
     notificationDetails,
     androidScheduleMode: AndroidScheduleMode.exactAllowWhileIdle,
   );
 }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.