Issue: 🔥iOS firebase.notifications().getInitialNotification() on notification tap the app opens then exit unexpected


does anyone know how to solve it?




Having the same issues as well. The only person who deals with notifications on expo team is @bacon. Maybe he can help us out


@fausto @ajgulati Unfortunately this functions differently to expo-firebase-notifications (RNFirebase but with compatibility for ExpoKit). I would imagine the issue is something to do with the AppDelegate, if you are sure that it is setup properly then perhaps there is a bug with that part of RNFirebase.


@bacon this is what my appdelegate.m file looks like in Expo 32 since the introduction of EXStandaloneAppDelegate.m file. I am not sure what I could be missing here - I am kind of lost so any push to the right direction would helo

#import "AppDelegate.h"

#import <EXFirebaseNotifications/EXFirebaseNotifications.h>

#import <EXFirebaseMessaging/EXFirebaseMessaging.h>

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

    [EXFirebaseNotifications configure];

    return [super application:application didFinishLaunchingWithOptions:launchOptions];

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo
fetchCompletionHandler:(nonnull void (^)(UIBackgroundFetchResult))completionHandler
    [[EXFirebaseNotifications instance] didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];



@fausto @bacon I made these changes to my files

It should fix it


@bacon @ajgulati I’m gonna have a look. I’m not using expo-firebase-notifications . Should it work with react-native-firebase + expo?


Uow! @ajgulati @bacon
I tested this solution as @ajgulati described on pull-request. It worked for me…


Glad it worked