#ifndef RNFirebaseMessaging_h #define RNFirebaseMessaging_h #endif #import #import "Firebase.h" #import #import #import #import @import UserNotifications; @interface RNFirebaseMessaging : RCTEventEmitter typedef void (^RCTRemoteNotificationCallback)(UIBackgroundFetchResult result); typedef void (^RCTWillPresentNotificationCallback)(UNNotificationPresentationOptions result); typedef void (^RCTNotificationResponseCallback)(); @property (nonatomic, assign) bool connectedToFCM; #if !TARGET_OS_TV + (void)didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo; + (void)didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo fetchCompletionHandler:(nonnull RCTRemoteNotificationCallback)completionHandler; + (void)didReceiveLocalNotification:(nonnull UILocalNotification *)notification; #endif @end