localNotification

by andypotanin

JavaScript

require( 'io.udx.notification' ).hasPermission( callback );

require( 'io.udx.notification' ).add({
    id:         String,  // A unique id of the notifiction
    date:       Date,    // This expects a date object
    message:    String,  // The message that is displayed
    title:      String,  // The title of the message
    repeat:     String,  // Either 'secondly', 'minutely', 'hourly', 
    badge:      Number,  // Displays number badge to notification
    sound:      String,  // A sound to be played
    json:       String,  // Data to be passed through the notification
    autoCancel: Boolean, // Setting this flag and the notification is automatically
    ongoing:    Boolean, // Prevent clearing of notification (Android only)
    
});

require( 'io.udx.notification' ).confirm( 'asdf', callback, 'asdf' );

require( 'io.udx.notification' ).getScheduledIds( 'asdf', callback, 'asdf' );