{"version":3,"file":"getLaunchNotification.mjs","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/getLaunchNotification.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { PlatformNotSupportedError } from '@aws-amplify/core/internals/utils';\n/**\n * Returns the notification which launched your app from a terminated state. The launch notification is consumed by\n * calls to this function and will yield a null result if:\n *   1. It is more than once (i.e. subsequent calls will be null)\n *   2. Another notification was opened while your app was running (either in foreground or background)\n *   3. Your app was brought back to the foreground by some other means (e.g. user tapped the app icon)\n *\n * @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.\n *\n * @throws platform: {@link PlatformNotSupportedError} - Thrown if called against an unsupported platform. Currently,\n * only React Native is supported by this API.\n * @returns {Promise<GetLaunchNotificationOutput>} - a promise resolving to {@link PushNotificationMessage} if there is\n * a launch notification and `null` otherwise.\n * @example\n * ```ts\n * const launchNotification = await getLaunchNotification();\n * ```\n */\nexport const getLaunchNotification = async () => {\n    throw new PlatformNotSupportedError();\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,qBAAqB,GAAG,YAAY;AACjD,IAAI,MAAM,IAAI,yBAAyB,EAAE;AACzC;;;;"}