Amazon Pinpoint enables you to record when users receive or open push notifications in order to gather metrics on the effectiveness of customer engagement campaigns. The Amplify Push Notifications plugin provides a simple API to record and send these events to Amazon Pinpoint.

## Record Notification Received

import android0 from "/src/fragments/lib/push-notifications/android/record_notifications/20_record_notification_received.mdx";

<Fragments fragments={{android: android0}} />

import ios1 from "/src/fragments/lib/push-notifications/ios/record_notifications/10_notification_received.mdx";

<Fragments fragments={{ios: ios1}} />

## Record Notification Opened

import android3 from "/src/fragments/lib/push-notifications/android/record_notifications/30_record_notification_opened.mdx";

<Fragments fragments={{android: android3}} />

import ios4 from "/src/fragments/lib/push-notifications/ios/record_notifications/20_notification_opened.mdx";

<Fragments fragments={{ios: ios4}} />
