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.

In-App Messagingの可能性を最大限に引き出すには、In-App Messagingキャンペーンを特定のユーザーサブセットにセグメント化してターゲット設定する必要があります。デバイスの統計情報、位置情報、その他の選択属性を含む追加情報でユーザーを特定することで、適切なユーザーに対してインテリジェントでターゲット化されたアプリ内メッセージを表示できるようになります。

src/index.js
import { identifyUser } from 'aws-amplify/in-app-messaging';
await identifyUser({
userId: '', // E.g. user-id
userProfile: {
email: '', // E.g. example@service.com
name: '', // E.g. name-of-the-user
plan: '' // E.g. plan-they-subscribe-to
customProperties: {
// E.g. hobbies: ['cooking', 'knitting'],
},
demographic: {
appVersion: '',
locale: '', // E.g. en_US
make: '', // E.g. Apple
model: '', // E.g. iPhone
modelVersion: '', // E.g. 13
platform: '', // E.g. iOS
platformVersion: '', // E.g. 15
timezone: '' // E.g. Americas/Los_Angeles
},
location: {
city: '', // E.g. Seattle
country: '', // E.g. US,
postalCode: '', // E.g. 98121
region: '', // E.g. WA
latitude: 0.0,
longitude: 0.0
},
metrics: {
// E.g. logins: 157
},
},
});

Amazon Pinpointでユーザーを特定する

Amazon Pinpointで identifyUser を使用する場合、他のユーザー情報プロパティに加えて、options の下に addressoptOut、および userAttributes プロパティを設定できます。

src/index.js
import { identifyUser } from 'aws-amplify/in-app-messaging';
await identifyUser({
userId: '', // E.g. user-id
options: {
address: '' // E.g. A device token or email address
optOut: '' // Either ALL or NONE
userAttributes: {
// E.g. interests: ['soccer', 'shoes'],
}
},
});