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

Choose your framework/language

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.

インアプリメッセージは、インアプリメッセージングまたは分析イベントが送信され、アクティブなインアプリメッセージングキャンペーンで定義された条件に一致する場合に表示されます。

分析イベント

メッセージがユーザーのデバイスに同期されたので、Amplify インアプリメッセージングを使用すると、追加の統合ステップなしで Amplify Analytics イベントでメッセージの表示を開始できます。Analytics の record API を使用して記録しているまたは既に記録しているイベントは、すべて自動的にインアプリメッセージングによって取得および処理されます。イベントがインアプリメッセージで定義された属性と条件に一致する場合、そのメッセージが表示されます。

src/index.js
import { record } from 'aws-amplify/analytics';
record({
name: 'first_event',
attributes: { color: 'red' },
metrics: { quantity: 10 }
});

イベント名、属性、およびメトリクスがいずれかのインアプリメッセージングキャンペーンで設定されたものと一致する場合、インアプリメッセージがアプリに表示されます。

インアプリメッセージングイベント

Amplify Analytics イベントに加えて、またはその代わりに、インアプリメッセージングイベントをディスパッチして、プログラムによってインアプリメッセージの表示をトリガーできます。

src/index.js
import { dispatchEvent } from 'aws-amplify/in-app-messaging';
dispatchEvent({
name: 'first_event',
attributes: { color: 'red' },
metrics: { quantity: 10 }
});

イベント名、属性、およびメトリクスがいずれかのインアプリメッセージングキャンペーンで設定されたものと一致する場合、インアプリメッセージがアプリに表示されます。