Name:
interface
Value:
Amplify has re-imagined the way frontend developers build fullstack applications. Develop and deploy without the hassle.
Gen1 DocsLegacy

Page updated Mar 26, 2026

メッセージの同期

AWS will end support for Amazon Pinpoint on October 30, 2026,, and is no longer accepting any new users as of May 20 (see the linked doc). The guidance is to use AWS End User Messaging for push notifications and SMS, Amazon Simple Email Service for sending emails, Amazon Connect for campaigns, journeys, endpoints, and engagement analytics. Pinpoint recommends Amazon Kinesis for event collection and mobile analytics.

メッセージをトリガーするには、インアプリメッセージングキャンペーンからユーザーのデバイスにメッセージを同期する必要があります。これらのメッセージはその後、分析またはインアプリメッセージングイベントでトリガーされます。この同期を実行する時間と頻度を制御できます。

src/index.js
import { syncMessages } from 'aws-amplify/in-app-messaging';
await syncMessages();

注記: メッセージを同期すると、常にユーザーのデバイス上に存在する既存のメッセージが上書きされるため、同期が実行されたときに常に最新の状態になります。