Stay organized with collections
Save and categorize content based on your preferences.
FIRMessagingExtensionHelper
classFIRMessagingExtensionHelper:NSObject
This class is used to automatically populate a notification with an image if it is
specified in the notification body via the image parameter. Images and other
rich content can be populated manually without the use of this class. See the
UNNotificationServiceExtension type for more details.
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.
Exports delivery metrics to BigQuery. Call this API to enable logging delivery of alert
notification or background notification and export to BigQuery.
If you log alert notifications, enable Notification Service Extension and calls this API
under UNNotificationServiceExtension didReceiveNotificationRequest: withContentHandler:.
If you log background notifications, call the API under UIApplicationDelegate
application:didReceiveRemoteNotification:fetchCompletionHandler:.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-11 UTC."],[],[],null,["# FirebaseMessaging Framework Reference\n\nFIRMessagingExtensionHelper\n===========================\n\n class FIRMessagingExtensionHelper : NSObject\n\nThis class is used to automatically populate a notification with an image if it is\nspecified in the notification body via the `image` parameter. Images and other\nrich content can be populated manually without the use of this class. See the\n`UNNotificationServiceExtension` type for more details.\n- `\n ``\n ``\n `\n\n ### [populateNotificationContent(_:withContentHandler:)](#/c:objc(cs)FIRMessagingExtensionHelper(im)populateNotificationContent:withContentHandler:)\n\n `\n ` \n Call this API to complete your notification content modification. If you like to\n overwrite some properties of the content instead of using the default payload,\n make sure to make your customized motification to the content before passing it to\n this call. \n\n #### Declaration\n\n Swift \n\n func populateNotificationContent(_ content: UNMutableNotificationContent, withContentHandler contentHandler: @escaping (UNNotificationContent) -\u003e Void)\n\n- `\n ``\n ``\n `\n\n ### [exportDeliveryMetricsToBigQuery(withMessageInfo:)](#/c:objc(cs)FIRMessagingExtensionHelper(im)exportDeliveryMetricsToBigQueryWithMessageInfo:)\n\n `\n ` \n Exports delivery metrics to BigQuery. Call this API to enable logging delivery of alert\n notification or background notification and export to BigQuery.\n If you log alert notifications, enable Notification Service Extension and calls this API\n under `UNNotificationServiceExtension didReceiveNotificationRequest: withContentHandler:`.\n If you log background notifications, call the API under `UIApplicationDelegate\n application:didReceiveRemoteNotification:fetchCompletionHandler:`. \n\n #### Declaration\n\n Swift \n\n func exportDeliveryMetricsToBigQuery(withMessageInfo info: [AnyHashable : Any])"]]