AWSPinpointTargetingGCMChannelRequest

Objective-C

@interface AWSPinpointTargetingGCMChannelRequest

Swift

class AWSPinpointTargetingGCMChannelRequest

Specifies the status and settings of the GCM channel for an application. This channel enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.

  • The Web API Key, also referred to as an API_KEY or server key, that you received from Google to communicate with Google services.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable apiKey;

    Swift

    var apiKey: String? { get set }
  • The default authentication method used for GCM. Values are either “TOKEN” or “KEY”. Defaults to “KEY”.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable defaultAuthenticationMethod;

    Swift

    var defaultAuthenticationMethod: String? { get set }
  • Specifies whether to enable the GCM channel for the application.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable enabled;

    Swift

    var enabled: NSNumber? { get set }
  • The contents of the JSON file provided by Google during registration in order to generate an access token for authentication. For more information see Migrate from legacy FCM APIs to HTTP v1.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable serviceJson;

    Swift

    var serviceJson: String? { get set }