Giter VIP home page Giter VIP logo

schedule_notifications's Introduction

Schedule Notifications

A Flutter plugin πŸ›  to schedule Local Notifications. Ready for iOS and Android πŸš€

License

Features

  • Send local notifications to iOS and Android πŸ“’
  • Schedule notifications ⏰

Requirements

  • iOS: Version 10.0+
  • Android: minSdkVersion 16

Installation

Add this to your package's pubspec.yaml file:

dependencies:
  schedule_notifications: "^0.1.8"

Usage example

General

  • One shot:
ScheduleNotifications.schedule("Notification Text", new DateTime.now(), []);
  • Schedule notifications:
List daysToRepeat = [DateTime.sunday, DateTime.monday]; // repeat every sunday and monday
ScheduleNotifications.schedule("Notification Text", new DateTime.now(), daysToRepeat);
  • Unschedule:
ScheduleNotifications.unschedule();

Android

  • To set icon of notifications:
int iconResourceId;
try {
    iconResourceId = await _platform.invokeMethod('getIconResourceId');
} on PlatformException catch (e) {
 Β  Β print('Error on get icon resource id');
}

ScheduleNotifications.setNotificationIcon(iconResourceId);

iOS

  • To request authorization of user:
ScheduleNotifications.requestAuthorization();

Contribute

We would ❀️ to see your contribution!

License

Distributed under the MIT license. See LICENSE for more information.

About

Created by Fabricio Serralvo and Marcos Aoki.

schedule_notifications's People

Contributors

marcosaoki avatar serralvo 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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

schedule_notifications's Issues

Cocoapods complaining about requiring higher minimum deployment target

    [!] CocoaPods could not find compatible versions for pod "schedule_notifications":
      In Podfile:
        schedule_notifications (from `.symlinks/plugins/schedule_notifications/ios`)
    
    Specs satisfying the `schedule_notifications (from `.symlinks/plugins/schedule_notifications/ios`)` dependency were found, but they required a higher minimum deployment target.
...
    [!] Automatically assigning platform `ios` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
Doctor summary (to see all details, run flutter doctor -v):
[βœ“] Flutter (Channel beta, v0.5.1, on Mac OS X 10.13.5 17F77, locale en-US)
[βœ“] Android toolchain - develop for Android devices (Android SDK 28.0.0)
[βœ“] iOS toolchain - develop for iOS devices (Xcode 9.4.1)

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.