Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
} from '../../../utils';
import { ConfigureAutoTrackInput } from '../types';

import { record } from './record';

Check warning on line 18 in packages/analytics/src/providers/pinpoint/apis/configureAutoTrack.ts

View workflow job for this annotation

GitHub Actions / unit-tests / Unit Test - @aws-amplify/analytics

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

// Configured Tracker instances for Pinpoint
const configuredTrackers: Partial<Record<TrackerType, TrackerInterface>> = {};
Expand All @@ -36,6 +36,8 @@
* configured events are detected within your application. This can include: DOM element events (via the `event`
* tracker), session events (via the `session` tracker), and page view events (via the `pageView` tracker).
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @remark Only session tracking is currently supported on React Native.
*
* @param {ConfigureAutoTrackInput} params The input object to configure auto track behavior.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const logger = new ConsoleLogger('Analytics');
/**
* Flushes all buffered Pinpoint events to the service.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @note
* This API will make a best-effort attempt to flush events from the buffer. Events recorded immediately after invoking
* this API may not be included in the flush.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import { resolveConfig, resolveCredentials } from '../utils';
* profile and activities or actions in your application. Activity can be tracked across devices & platforms by using
* the same `userId`.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @param {IdentifyUserInput} params The input object used to construct requests sent to Pinpoint's UpdateEndpoint
* API.
*
Expand Down
2 changes: 2 additions & 0 deletions packages/analytics/src/providers/pinpoint/apis/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const logger = new ConsoleLogger('Analytics');
/**
* Records an Analytic event to Pinpoint. Events will be buffered and periodically sent to Pinpoint.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @param params The input object used to construct the request.
*
* @throws validation: {@link AnalyticsValidationErrorCode} - Thrown when the provided parameters or library
Expand Down
20 changes: 10 additions & 10 deletions packages/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
"name": "[Analytics] record (Pinpoint)",
"path": "./dist/esm/analytics/index.mjs",
"import": "{ record }",
"limit": "18.10 kB"
"limit": "18.24 kB"
},
{
"name": "[Analytics] record (Kinesis)",
Expand Down Expand Up @@ -349,7 +349,7 @@
"name": "[API] generateClient (AppSync)",
"path": "./dist/esm/api/index.mjs",
"import": "{ generateClient }",
"limit": "45.47 kB"
"limit": "45.55 kB"
},
{
"name": "[API] REST API handlers",
Expand Down Expand Up @@ -385,7 +385,7 @@
"name": "[Auth] resendSignUpCode (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ resendSignUpCode }",
"limit": "13.5 kB"
"limit": "13.54 kB"
},
{
"name": "[Auth] confirmSignUp (Cognito)",
Expand All @@ -409,7 +409,7 @@
"name": "[Auth] fetchMFAPreference (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ fetchMFAPreference }",
"limit": "13 kB"
"limit": "13.03 kB"
},
{
"name": "[Auth] verifyTOTPSetup (Cognito)",
Expand All @@ -427,19 +427,19 @@
"name": "[Auth] setUpTOTP (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ setUpTOTP }",
"limit": "14 kB"
"limit": "14.17 kB"
},
{
"name": "[Auth] updateUserAttributes (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ updateUserAttributes }",
"limit": "13 kB"
"limit": "13.1 kB"
},
{
"name": "[Auth] getCurrentUser (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ getCurrentUser }",
"limit": "8.30 kB"
"limit": "8.48 kB"
},
{
"name": "[Auth] confirmUserAttribute (Cognito)",
Expand Down Expand Up @@ -481,7 +481,7 @@
"name": "[Auth] List WebAuthN Credentials (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ listWebAuthnCredentials }",
"limit": "13 kB"
"limit": "13.1 kB"
},
{
"name": "[Auth] Delete WebAuthN Credential (Cognito)",
Expand All @@ -493,7 +493,7 @@
"name": "[Storage] copy (S3)",
"path": "./dist/esm/storage/index.mjs",
"import": "{ copy }",
"limit": "17 kB"
"limit": "17.16 kB"
},
{
"name": "[Storage] downloadData (S3)",
Expand Down Expand Up @@ -529,7 +529,7 @@
"name": "[Storage] uploadData (S3)",
"path": "./dist/esm/storage/index.mjs",
"import": "{ uploadData }",
"limit": "24.4 kB"
"limit": "24.54 kB"
}
]
}
15 changes: 15 additions & 0 deletions packages/core/src/singleton/Amplify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,21 @@ export class AmplifyClass {

this.Auth.configure(this.resourcesConfig.Auth!, this.libraryOptions.Auth);

// Warn if Pinpoint is configured
if (
this.resourcesConfig.Analytics?.Pinpoint ||
this.resourcesConfig.Notifications?.InAppMessaging?.Pinpoint ||
this.resourcesConfig.Notifications?.PushNotification?.Pinpoint
) {
// eslint-disable-next-line no-console
console.warn(
'AWS will end support for Amazon Pinpoint on October 30, 2026. ' +
'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.',
);
}

Hub.dispatch(
'core',
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { assertIsInitialized } from '../../../utils';
/**
* Clear locally cached messages.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown if In App messaging hasn't been initialized.
* @returns A promise that will resolve when the operation is complete.
* @example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import { setConflictHandler } from './setConflictHandler';
* {@link syncMessages}. Based on the messages synced and the event passed to this API, it triggers the display
* of the In-App message that meets the criteria.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @remark
* If an event would trigger multiple messages, the message closest to expiry will be chosen by default.
* To change this behavior, you can use the {@link setConflictHandler} API to provide
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import { assertIsInitialized } from '../../../utils';
* profile and activities or actions in your application. Activity can be tracked across devices & platforms by using
* the same `userId`.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @param input The input object that conforms to {@link IdentifyUserInput} used to construct requests sent to Pinpoint's UpdateEndpoint
* API.
* @throws service: {@link UpdateEndpointException} - Thrown when the underlying Pinpoint service returns an error.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import { dispatchEvent } from './dispatchEvent';
/**
* Initialize and set up in-app messaging category. This API needs to be called to enable other InAppMessaging APIs.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @remarks
* Make sure to call this early in your app at the root entry point after configuring Amplify.
* @example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { NotifyMessageInteractionInput } from '../types/inputs';
/**
* Notifies the respective listener of the specified type with the message given.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @param {NotifyMessageInteractionInput} input - The input object that holds the type and message.
* @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library
* configuration is incorrect, or if In App messaging hasn't been initialized.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { OnMessageActionTakenOutput } from '../types/outputs';
/**
* Registers a callback that will be invoked on `messageActionTaken` events.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @param {OnMessageActionTakenInput} input - The input object that holds the callback handler.
* @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library
* configuration is incorrect, or if In App messaging hasn't been initialized.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { InAppMessagingValidationErrorCode } from '../../../errors';
/**
* Registers a callback that will be invoked on `messageDismissed` events.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @param {OnMessageDismissedInput} input - The input object that holds the callback handler.
* @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library
* configuration is incorrect, or if In App messaging hasn't been initialized.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { InAppMessagingValidationErrorCode } from '../../../errors';
/**
* Registers a callback that will be invoked on `messageDisplayed` events.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @param {OnMessageDisplayedInput} input - The input object that holds the callback handler.
* @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library
* configuration is incorrect, or if In App messaging hasn't been initialized.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { OnMessageReceivedOutput } from '../types/outputs';
/**
* Registers a callback that will be invoked on `messageReceived` events.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @param {OnMessageReceivedInput} input - The input object that holds the callback handler.
* @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library
* configuration is incorrect, or if In App messaging hasn't been initialized.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { setConflictHandler as setConflictHandlerInteral } from '../utils';
* Set a conflict handler that will be used to resolve conflicts that may emerge
* when matching events with synced messages.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @remark
* The conflict handler is not persisted across app restarts and so must be set again before dispatching an event for
* any custom handling to take effect.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import { assertIsInitialized } from '../../../utils';
* Fetch and persist messages from Pinpoint campaigns.
* Calling this API is necessary to trigger InApp messages on the device.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @throws service exceptions - Thrown when the underlying Pinpoint service returns an error.
* @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library
* configuration is incorrect, or if In App messaging hasn't been initialized.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { GetBadgeCount } from '../types';
* Returns the current badge count (the number next to your app's icon). This function is safe to call (but will be
* ignored) even when your React Native app is running on platforms where badges are not supported.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @throws platform: {@link PlatformNotSupportedError} - Thrown if called against an unsupported platform. Currently,
* only React Native is supported by this API.
* @returns A promise that resolves to a number representing the current count displayed on the app badge.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import { GetLaunchNotification, GetLaunchNotificationOutput } from '../types';
* 2. Another notification was opened while your app was running (either in foreground or background)
* 3. Your app was brought back to the foreground by some other means (e.g. user tapped the app icon)
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @throws platform: {@link PlatformNotSupportedError} - Thrown if called against an unsupported platform. Currently,
* only React Native is supported by this API.
* @returns {Promise<GetLaunchNotificationOutput>} - a promise resolving to {@link PushNotificationMessage} if there is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import { GetPermissionStatus, GetPermissionStatusOutput } from '../types';
* trigger a permission dialog. Your app should now either degrade gracefully or prompt your user to grant the
* permissions needed in their device settings.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @throws platform: {@link PlatformNotSupportedError} - Thrown if called against an unsupported platform. Currently,
* only React Native is supported by this API.
* @return {Promise<GetPermissionStatusOutput>} a promise resolving to a string representing the current status of user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { IdentifyUser, IdentifyUserInput } from '../types';
* profile and activities or actions in your application. Activity can be tracked across devices & platforms by using
* the same `userId`.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @param {IdentifyUserInput} input The input object used to construct requests sent to Pinpoint's UpdateEndpoint
* API.
* @throws service: {@link UpdateEndpointException} - Thrown when the underlying Pinpoint service returns an error.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { InitializePushNotifications } from '../types';
* Initialize and set up the push notification category. The category must be first initialized before all other
* functionalities become available.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @throws platform: {@link PlatformNotSupportedError} - Thrown if called against an unsupported platform. Currently,
* only React Native is supported by this API.
* @remarks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import {
/**
* Registers a listener that will be triggered when a notification is opened by user.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @param {OnNotificationOpenedInput} input - A callback handler to be invoked with the opened
* {@link PushNotificationMessage}.
* @returns {OnNotificationOpenedOutput} - An object with a remove function to remove the listener.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import {
/**
* Registers a listener that will be triggered when a notification is received while app is in a background state.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @throws platform: {@link PlatformNotSupportedError} - Thrown if called against an unsupported platform. Currently,
* only React Native is supported by this API.
* @param {OnNotificationReceivedInBackgroundInput} input - A callback handler to be invoked with the received
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import {
/**
* Registers a listener that will be triggered when a notification is received while app is in a foreground state.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @param {OnNotificationReceivedInForegroundInput} input - A callback handler to be invoked with the received
* {@link PushNotificationMessage}.
* @returns {OnNotificationReceivedInForegroundOutput} - An object with a remove function to remove the listener.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import {
* 1. On every app launch, including the first install
* 2. When a token changes (this may happen if the service invalidates the token for any reason)
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @param {OnTokenReceivedInput} input - A callback handler to be invoked with the token.
* @returns {OnTokenReceivedOutput} - An object with a remove function to remove the listener.
* @example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import { RequestPermissions } from '../types';
*
* * `badge`: When set to true, requests the ability to update the app's badge.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @throws platform: {@link PlatformNotSupportedError} - Thrown if called against an unsupported platform. Currently,
* only React Native is supported by this API.
* @returns A promise that resolves to true if requested permissions are granted or have already previously been
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { SetBadgeCount } from '../types';
* to 0 (zero) will remove the badge from your app's icon. This function is safe to call (but will be ignored) even
* when your React Native app is running on platforms where badges are not supported.
*
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
*
* @throws platform: {@link PlatformNotSupportedError} - Thrown if called against an unsupported platform. Currently,
* only React Native is supported by this API.
* @example
Expand Down
Loading