As of April 10, 2018, Google has deprecated GCM. The GCM server and client APIs are deprecated and will be removed as soon as April 11, 2019. Migrate GCM apps to Firebase Cloud Messaging (FCM), which inherits the reliable and scalable GCM infrastructure, plus many new features. See the migration guide to learn more.

GCMConfig Class

GCMConfig Class Reference

Overview

Config used to set different options in Google Cloud Messaging.

Inherits NSObject.

Class Method Summary

(instancetype) + defaultConfig
 Get default configuration for GCM. More...
 

Properties

id< GCMReceiverDelegatereceiverDelegate
 Set the GCMReceiverDelegate to receive callbacks on upstream messages. More...
 
GCMLogLevel logLevel
 The log level for the GCM library. More...
 

Method Detail

+ (instancetype) defaultConfig

Get default configuration for GCM.

The default config has logLevel set to kGCMLogLevelError and receiverDelegate is set to nil.

Returns
GCMConfig sharedInstance.

Property Documentation

- (id<GCMReceiverDelegate>) receiverDelegate
readwritenonatomicweak

Set the GCMReceiverDelegate to receive callbacks on upstream messages.

See also
GCMReceiverDelegate
- (GCMLogLevel) logLevel
readwritenonatomicassign

The log level for the GCM library.

Valid values are kGCMLogLevelDebug, kGCMLogLevelInfo, kGCMLogLevelError, and kGCMLogLevelAssert.

Send feedback about...

Cloud Messaging
Cloud Messaging