Firebase Cloud Messaging (FCM) is the new version of GCM. It inherits the reliable and scalable GCM infrastructure, plus new features! See the FAQ to learn more. If you are integrating messaging in a new app, start with FCM. GCM users are strongly recommended to upgrade to FCM, in order to benefit from new FCM features today and in the future. Before you go, please visit our GCM and FCM developer survey to give us feedback!

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