Amplify JS API Documentation
    Preparing search index...
    • Parameters

      Returns Promise<void>

    • Fetch and persist messages from Pinpoint campaigns. Calling this API is necessary to trigger InApp messages on the device.

      Returns Promise<void>

      A promise that will resolve when the operation is complete.

      AWS will end support for Amazon Pinpoint on October 30, 2026.

      service exceptions - Thrown when the underlying Pinpoint service returns an error.

      validation: InAppMessagingValidationErrorCode - Thrown when the provided parameters or library configuration is incorrect, or if In App messaging hasn't been initialized.

      // Sync InApp messages with Pinpoint and device.
      await syncMessages();