public void cancel() {
        Log.d(TAG, "Cancel notification, options=" + options);

        cancelScheduledAlarm();

        // Remove saved notification data from the app
        removeFromSharedPreferences();

        // Clear the notification from the status bar if posted
        NotificationManagerCompat.from(context).cancel(LocalNotification.getAppName(context), getId());

        // Inform WebView about the canceling
        if (LocalNotification.isAppRunning()) LocalNotification.fireEvent("cancel", this);
    }
Cancels the notification and removes it from SharedPreferences.
The WebView will receive a cancel event, if the app is running.
src/android/Notification.java