question

newuser-df472218-613a-418d-a7a7-c59ad4b59d6a avatar image

Progressive Messaging not coming on app

I am getting the correct behavior on the echo show (skill returns audio response "Please wait", there is a pause for a few seconds, then returns "This is the final message").

The behavior on the developer console is there is a pause for 5 seconds followed by the progressive message and response message in succession.

On the Android and iPhone Alexa apps there is no progressive response, only "This is the final message" after 5 seconds.

Below is my implementation:

function callDirectiveService(handlerInput, message) {
    const requestId = handlerInput.requestEnvelope.request.requestId;

    const directiveServiceClient = handlerInput.serviceClientFactory.getDirectiveServiceClient();

    const directive = {
        header: {
            requestId,
        },
        directive: {
            type: 'VoicePlayer.Speak',
            speech: message,
        },
    };

    return directiveServiceClient.enqueue(directive);
}

const LaunchRequestHandler = {
    canHandle(handlerInput) {
        return handlerInput.requestEnvelope.request.type === LaunchRequest;
    },
    async handle(handlerInput) {
        const message = "Please wait";

        await callDirectiveService(handlerInput, message);

        return new Promise((resolve, reject) => {
            setTimeout(() => {
                const response = handlerInput.responseBuilder
                .speak("This is the final message")
                .getResponse();
                resolve(response)
            }, 5000);
        })
    }
}


Am I correct in assuming this should be working on the developer console and app as it does on the echo show?

amazon device messagingprogressiveresponse
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Pan@Amazon avatar image
Pan@Amazon answered

If the behavior is present on the developer console and Echo Show, I would agree with you. Can you submit a feature request at https://alexa.uservoice.com, so the team knows about this?

10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.