Classes
The following classes are available globally.
-
Information about a downstream message received by the app.
Declaration
Swift
class FIRMessagingMessageInfo : NSObjectObjective-C
@interface FIRMessagingMessageInfo : NSObject -
A remote data message received by the app via FCM (not just the APNs interface).
This is only for devices running iOS 10 or above. To support devices running iOS 9 or below, use the local and remote notifications handlers defined in UIApplicationDelegate protocol.
Declaration
Swift
class FIRMessagingRemoteMessage : NSObjectObjective-C
@interface FIRMessagingRemoteMessage : NSObject -
Firebase Messaging enables apps to communicate with their app servers using simple messages.
To send or receive messages, the app must get a registration token from GGLInstanceID, which authorizes an app server to send messages to an app instance. Pass your sender ID and
kGGLInstanceIDScopeFIRMessagingas parameters to the method.A sender ID is a project number created when you configure your API project. It is labeled
Project Number
in the Google Developers Console.In order to receive FIRMessaging messages, declare application:didReceiveRemoteNotification:
Client apps can send upstream messages back to the app server using the XMPP-based Cloud Connection Server
Declaration
Swift
class FIRMessaging : NSObjectObjective-C
@interface FIRMessaging : NSObject

