static void fireEvent(String event, Notification notification, JSONObject data) {
        try {
            data.put("event", event);
            data.put("foreground", isInForeground());
            data.put("queued", !deviceready);

            if (notification != null) {
                data.put("notification", notification.getId());
            }
        } catch (JSONException exception) {
            exception.printStackTrace();
        }

        if (launchDetails == null && !deviceready && notification != null) {
            launchDetails = new Pair<Integer, String>(notification.getId(), event);
        }

        sendJavascript(String.format(
            "cordova.plugins.notification.local.fireEvent('%s', %s)",
            event,
            // params
            (notification != null ? notification.getOptions().toString() + ", " : "") + data.toString()));
    }
Fire given event on JS side. Does inform all event listeners.

@param event The event name.
@param notification Optional notification to pass with.
@param data Event object with additional data.
src/android/LocalNotification.java