GithubHelp home page GithubHelp logo

americanbible / cordova-ios-localnotification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from olivierlesnicki/cordova-ios-localnotification

0.0 7.0 0.0 95 KB

Objective-C 51.27% JavaScript 48.73%

cordova-ios-localnotification's Introduction

Cordova Local Notification Plugin

A Cordova 2.3.0+ plugin to create local notifications on iOs.

Originally by Olivier Lesnicki.

Installing the plugin

  1. Place LocalNotification.m and LocalNotification.h in your Plugins folder

  2. Place cordova.localNotification.js in your www folder

  3. Link your index page to cordova.localNotification.js

  4. In config.xml add the following within the <plugins> tag

     <plugin name="LocalNotification" value="LocalNotification" />
    

In order to enable the notification listener we need to uncomment a number of lines in CDVPlugin.m and `CDVPlugin.h

  1. In CordovaLib/Classes/CDVPlugin.m uncomment the following line in initWithWebView

     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didReceiveLocalNotification:) name:CDVLocalNotification object:nil];
    
  2. In CordovaLib/Classes/CDVPlugin.m uncomment the following lines at the end of the file

     - (void)didReceiveLocalNotification:(NSNotification *)notification {}
    
  3. In CordovaLib/Classes/CDVPlugin.h uncomment the following line

      - (void)didReceiveLocalNotification:(NSNotification *)notification;
    
  4. Place your .caf sound in your App Resourcesfolder (not thewww` folder)

cordova-ios-localnotification's People

Contributors

olivierlesnicki avatar pizwu avatar

Watchers

Aaron Schaap avatar Bryce Allison avatar Dennis Walters avatar James Cloos avatar Joel Fouse avatar Adam DeLong avatar  avatar

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.