Classes

The following classes are available globally.

  • Information about a downstream message received by the app.

    Declaration

    Objective-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

    Objective-C

    
    @interface FIRMessagingRemoteMessage : NSObject
  • Firebase Messaging lets you reliably deliver messages at no cost.

    To send or receive messages, the app must get a registration token from FIRInstanceID. This token authorizes an app server to send messages to an app instance.

    In order to receive FIRMessaging messages, declare application:didReceiveRemoteNotification::fetchCompletionHandler:.

    Declaration

    Objective-C

    
    @interface FIRMessaging : NSObject
  • Undocumented

    Declaration

    Objective-C

    @interface FIRMessagingExtensionHelper : NSObject
    
     /// Call this API to complete your notification content modification. If you like to
    /// overwrite some properties of the content instead of using the default payload,
    /// make sure to make your customized motification to the content before passing it to
    /// this call.
    - (void)populateNotificationContent:(UNMutableNotificationContent *)content
                     withContentHandler:(void (^)(UNNotificationContent *_Nonnull))contentHandler;
    
     @end