Inherits from NSObject
Declared in KiiGCMFields.h

Overview

Class that encapsulate GCM message fields data structure

Properties

collapseKey

String. Not required. If provided, it will be used as the GCM notification collapse_key*

@property (nonatomic, nullable) NSString *collapseKey

Discussion

String. Not required. If provided, it will be used as the GCM notification collapse_key*

Declared In

KiiGCMFields.h

delayWhileIdle

Boolean. Not required. If provided, it will be used as the GCM notification delay_while_idle*

@property (nonatomic, nullable) NSNumber *delayWhileIdle

Discussion

Boolean. Not required. If provided, it will be used as the GCM notification delay_while_idle*

Declared In

KiiGCMFields.h

dryRun

Boolean. Not required. If true, the only system that can be enabled is “GCM” - no other system will be accepted. If provided, it will be used as the GCM dry_run*

@property (nonatomic, nullable) NSNumber *dryRun

Discussion

Boolean. Not required. If true, the only system that can be enabled is “GCM” - no other system will be accepted. If provided, it will be used as the GCM dry_run*

Declared In

KiiGCMFields.h

restrictedPackageName

String. Not required. If provided, it will be used as the GCM restricted_package_name*

@property (nonatomic, nullable) NSString *restrictedPackageName

Discussion

String. Not required. If provided, it will be used as the GCM restricted_package_name*

Declared In

KiiGCMFields.h

timeToLive

Integer. Not required. If provided, it will be used as the GCM notification time_to_live*

@property (nonatomic, nullable) NSNumber *timeToLive

Discussion

Integer. Not required. If provided, it will be used as the GCM notification time_to_live*

Declared In

KiiGCMFields.h

Class Methods

createFields

Field creation constructor, automatically set enabled = true to GCM Field

+ (nonnull KiiGCMFields *)createFields

Discussion

Field creation constructor, automatically set enabled = true to GCM Field

Declared In

KiiGCMFields.h

Instance Methods

generateFields

Generate formatted fields

- (nonnull NSDictionary *)generateFields

Return Value

dictionary Generated fields, useful for testing purpose.

Discussion

Generate formatted fields

Declared In

KiiGCMFields.h

setSpecificData:

Set Dictionary with the data that will be sent only to Android-GCM devices. This data must not contain GCM reserved payload keys, please check KiiPushMessage documentation.

- (void)setSpecificData:(nullable NSDictionary *)dict

Parameters

dict

a Dictionary object contains one level json dictionary data

Discussion

Set Dictionary with the data that will be sent only to Android-GCM devices. This data must not contain GCM reserved payload keys, please check KiiPushMessage documentation.

Declared In

KiiGCMFields.h