idea-aws
    Preparing search index...

    Interface SNSPublishParams

    Options to publish a message on a SNS endpoint.

    interface SNSPublishParams {
        data?: Record<string, string>;
        endpoint: string;
        json?: any;
        message?: string;
        platform?: PushNotificationsPlatforms;
    }
    Index

    Properties

    data?: Record<string, string>

    Application data delivered together with the message, for the receiving app to know what the notification refers to; it doesn't change what the device shows. The values must be strings: FCM refuses anything else inside its data block. Ignored when json is set.

    endpoint: string

    The endpoint of the notification.

    json?: any

    If set, message and platform will be ignored and the content of this attribute will be preferred.

    message?: string

    The message to send.

    platform?: PushNotificationsPlatforms

    The platform receiver; used to structure the message.