urbanairship-core/src/main/java/com/urbanairship/CoreReceiver.java
private void onNotificationDismissedProxy(Context context, Intent intent) {
        PushMessage message = PushMessage.fromIntent(intent);
        if (message == null) {
            Logger.error("CoreReceiver - Intent is missing push message for: " + intent.getAction());
            return;
        }

        int notificationId = intent.getIntExtra(PushManager.EXTRA_NOTIFICATION_ID, -1);

        Logger.info("Notification dismissed ID: " + notificationId);


        PendingIntent deleteIntent = (PendingIntent) intent.getExtras().get(PushManager.EXTRA_NOTIFICATION_DELETE_INTENT);
        if (deleteIntent != null) {
            try {
                deleteIntent.send();
            } catch (PendingIntent.CanceledException e) {
                Logger.debug("Failed to send notification's deleteIntent, already canceled.");
            }
        }

        Intent dismissIntent = new Intent(PushManager.ACTION_NOTIFICATION_DISMISSED)
                .putExtras(intent.getExtras())
                .setPackage(UAirship.getPackageName())
                .addCategory(UAirship.getPackageName());

        context.sendOrderedBroadcast(dismissIntent, null);
    }
/**
     * Handles notification dismissed intent.
     *
     * @param context The application context.
     * @param intent The notification intent.
     */
Handles notification dismissed intent.
@param context The application context.
@param intent The notification intent.
Handles notification dismissed intent . @param context The application context . @param intent The notification intent .
private void onNotificationDismissedProxy(Context context, Intent intent) {
        PushMessage message = PushMessage.fromIntent(intent);
        if (message == null) {
            Logger.error("CoreReceiver - Intent is missing push message for: " + intent.getAction());
            return;
        }
        int notificationId = intent.getIntExtra(PushManager.EXTRA_NOTIFICATION_ID, -1);
        Logger.info("Notification dismissed ID: " + notificationId);
        PendingIntent deleteIntent = (PendingIntent) intent.getExtras().get(PushManager.EXTRA_NOTIFICATION_DELETE_INTENT);
        if (deleteIntent != null) {
            try {
                deleteIntent.send();
            } catch (PendingIntent.CanceledException e) {
                Logger.debug("Failed to send notification's deleteIntent, already canceled.");
            }
        }
        Intent dismissIntent = new Intent(PushManager.ACTION_NOTIFICATION_DISMISSED)
                .putExtras(intent.getExtras())
                .setPackage(UAirship.getPackageName())
                .addCategory(UAirship.getPackageName());
        context.sendOrderedBroadcast(dismissIntent, null);
    }
private void onNotificationDismissedProxy ( Context context , Intent intent ) { PushMessage message = PushMessage . fromIntent ( intent ) ; if ( message == null ) { Logger . error ( "CoreReceiver - Intent is missing push message for: " + intent . getAction ( ) ) ; return ; } int notificationId = intent . getIntExtra ( PushManager . EXTRA_NOTIFICATION_ID , - 1 ) ; Logger . info ( "Notification dismissed ID: " + notificationId ) ; PendingIntent deleteIntent = ( PendingIntent ) intent . getExtras ( ) . get ( PushManager . EXTRA_NOTIFICATION_DELETE_INTENT ) ; if ( deleteIntent != null ) { try { deleteIntent . send ( ) ; } catch ( PendingIntent . CanceledException e ) { Logger . debug ( "Failed to send notification's deleteIntent, already canceled." ) ; } } Intent dismissIntent = new Intent ( PushManager . ACTION_NOTIFICATION_DISMISSED ) . putExtras ( intent . getExtras ( ) ) . setPackage ( UAirship . getPackageName ( ) ) . addCategory ( UAirship . getPackageName ( ) ) ; context . sendOrderedBroadcast ( dismissIntent , null ) ; }
Handles notification dismissed intent.
Handles notification dismissed intent .