getting error in Notifications.getExpoPushTokenAsync();

In expo managed workflow I successfully implemented expo push notification but when I eject managed workflow then I get error
[Error: Encountered an exception while calling native method: Exception occurred while executing exported method getDevicePushTokenAsync on module ExpoPushTokenManager: Default FirebaseApp is not initialized in this process com.luciajane.taskuser. Make sure to call FirebaseApp.initializeApp(Context) first.]

my code is

let statusObj = await Permissions.getAsync(Permissions.NOTIFICATIONS);
    if (statusObj.status !== 'granted') {
      statusObj = await Permissions.askAsync(Permissions.NOTIFICATIONS);
    }
    if (statusObj.status !== 'granted') {
      pushToken = null;
    } else {
      const experienceId = '@luciajane/task-user';

      pushToken = (await Notifications.getExpoPushTokenAsync({ experienceId }))
        .data;
    }

I am using expo-notifications not firebase …

I am still searching for solutions :slightly_frowning_face:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.