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 …