Amplify Toolbox
    Preparing search index...

    FCM (Firebase Cloud Messaging) / GCM channel configuration, using FCM HTTP v1 authentication. Google deprecated the legacy server-key (ApiKey) API, so this models the current v1 path: a Google service-account JSON credential, supplied via an Amplify secret(). Provide this to enable the GCM/FCM channel on the created End User Messaging (Pinpoint) application.

    import { secret } from '@aws-amplify/backend';

    defineNotifications({
    fcm: {
    serviceJson: secret('FCM_SERVICE_ACCOUNT_JSON'),
    },
    });
    type FcmChannelProps = {
        serviceJson: BackendSecret;
    }
    Index

    Properties

    Properties

    serviceJson: BackendSecret

    Amplify secret() holding the FCM HTTP v1 credential — the full contents of the Google service-account JSON downloaded from the Firebase console. Resolved at deploy time and written to the GCM channel's ServiceJson with DefaultAuthenticationMethod = TOKEN; never stored in the CloudFormation template as plain text.