@Override
    public void onReceive(Context context, Intent intent) {
        Log.d(TAG, "Received action: " + intent.getAction());

        Notification notification = Notification.getFromSharedPreferences(
            context, intent.getExtras().getInt(Notification.EXTRA_ID, 0));

        // Show the notification
        notification.show(false);

        // Schedule next notification if available. The notification
        // will not be removed from the SharedPreferences, if there is no
        // next trigger. So the NotificationClickActivity
        // and ClearReceiver can still read the notification data. They
        // will remove the notification from the SharedPreferences if they are
        // executed. A notification can ony be cleared or clicked.
        notification.scheduleNext();
    }
Called when an alarm was triggered.
@param context Application context
@param intent Received intent with content data
src/android/receiver/TriggerReceiver.java