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.

このコールは、現在のユーザー(認証されていないまたは認証されている可能性があります)に関する情報をAmazon Pinpointに送信します。

nameemailplan、およびAnalyticsUserProfile.Locationを使用した位置情報を提供できます。AnalyticsPropertiesを使用して追加のカスタム属性も送信できます。

ユーザーがAmplify.Auth.signInを通じてサインインしている場合、以下に示すように現在のユーザーのIDを取得できます:

let user = try await Amplify.Auth.getCurrentUser()
let location = AnalyticsUserProfile.Location(
latitude: 47.606209,
longitude: -122.332069,
postalCode: "98122",
city: "Seattle",
region: "WA",
country: "USA"
)
let properties: AnalyticsProperties = [
"phoneNumber": "+11234567890",
"age": 25
]
let userProfile = AnalyticsUserProfile(
name: "username",
email: "name@example.com",
plan: "plan",
location: location,
properties: properties
)
Amplify.Analytics.identifyUser(
userId: user.userId,
userProfile: userProfile
)

ユーザー情報を送信することで、ユーザーをそのユーザープロフィールとアプリ内のアクティビティまたはアクションに関連付けることができます。ユーザーのアクション属性は、同じuserIdを使用することで、デバイスとプラットフォーム全体で追跡することもできます。

ユーザーを識別し、関連するアプリアクティビティを識別するシナリオの例は以下の通りです:

  • ユーザーがアプリのサインアップを完了した場合
  • ユーザーがサインインプロセスを完了した場合
  • ユーザーがアプリを起動した場合
  • ユーザーがユーザープロフィールを変更または更新した場合