urbanairship-core/src/main/java/com/urbanairship/AirshipReceiver.java
private void handleRegistrationIntent(@NonNull Context context, @NonNull Intent intent) {
        if (intent.hasExtra(PushManager.EXTRA_ERROR)) {
            onChannelRegistrationFailed(context);
        } else {
            String channel = intent.getStringExtra(PushManager.EXTRA_CHANNEL_ID);
            if (channel == null) {
                Logger.error("AirshipReceiver - Intent is missing channel ID for: " + intent.getAction());
                return;
            }

            boolean isCreateRequest = intent.getBooleanExtra(PushManager.EXTRA_CHANNEL_CREATE_REQUEST, true);
            if (isCreateRequest) {
                onChannelCreated(context, channel);
            } else {
                onChannelUpdated(context, channel);
            }
        }
    }
/**
     * Handles the registration intent.
     *
     * @param context The application context.
     * @param intent The registration intent.
     */
Handles the registration intent.
@param context The application context.
@param intent The registration intent.
Handles the registration intent . @param context The application context . @param intent The registration intent .
private void handleRegistrationIntent(@NonNull Context context, @NonNull Intent intent) {
        if (intent.hasExtra(PushManager.EXTRA_ERROR)) {
            onChannelRegistrationFailed(context);
        } else {
            String channel = intent.getStringExtra(PushManager.EXTRA_CHANNEL_ID);
            if (channel == null) {
                Logger.error("AirshipReceiver - Intent is missing channel ID for: " + intent.getAction());
                return;
            }
            boolean isCreateRequest = intent.getBooleanExtra(PushManager.EXTRA_CHANNEL_CREATE_REQUEST, true);
            if (isCreateRequest) {
                onChannelCreated(context, channel);
            } else {
                onChannelUpdated(context, channel);
            }
        }
    }
private void handleRegistrationIntent ( @ NonNull Context context , @ NonNull Intent intent ) { if ( intent . hasExtra ( PushManager . EXTRA_ERROR ) ) { onChannelRegistrationFailed ( context ) ; } else { String channel = intent . getStringExtra ( PushManager . EXTRA_CHANNEL_ID ) ; if ( channel == null ) { Logger . error ( "AirshipReceiver - Intent is missing channel ID for: " + intent . getAction ( ) ) ; return ; } boolean isCreateRequest = intent . getBooleanExtra ( PushManager . EXTRA_CHANNEL_CREATE_REQUEST , true ) ; if ( isCreateRequest ) { onChannelCreated ( context , channel ) ; } else { onChannelUpdated ( context , channel ) ; } } }
Handles the registration intent.
Handles the registration intent .