Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default FirebaseApp is not initialized in this process com.client. Make sure to call FirebaseApp.initializeApp(Context) first. #2407

Open
kjahandel opened this issue Mar 24, 2024 · 1 comment

Comments

@kjahandel
Copy link

I don't use firebase or google services and use local push notification , but I get this error message when starting my app on an Android-device:

"Default FirebaseApp is not initialized in this process com.client. Make sure to call FirebaseApp.initializeApp(Context) first."

Here are all the npm packages I use in the project:
"dependencies": { "@react-native-async-storage/async-storage": "^1.22.1", "@react-native-community/push-notification-ios": "^1.11.0", "@react-navigation/bottom-tabs": "^6.5.12", "@react-navigation/native": "^6.1.10", "@react-navigation/native-stack": "^6.9.18", "axios": "^1.6.7", "react": "18.2.0", "react-native": "0.73.4", "react-native-calendars": "^1.1304.1", "react-native-document-picker": "^9.1.1", "react-native-fs": "^2.20.0", "react-native-image-picker": "^7.1.0", "react-native-localize": "^3.0.6", "react-native-media-controls": "^2.3.0", "react-native-permissions": "^4.1.4", "react-native-push-notification": "^8.1.1", "react-native-safe-area-context": "^4.9.0", "react-native-screens": "^3.29.0", "react-native-slider": "^0.11.0", "react-native-vector-icons": "^10.0.3", "react-native-video": "^5.2.1", "react-native-video-thumbnails": "^0.0.0" }, "devDependencies": { "@babel/core": "^7.20.0", "@babel/preset-env": "^7.20.0", "@babel/runtime": "^7.20.0", "@react-native/babel-preset": "0.73.21", "@react-native/eslint-config": "0.73.2", "@react-native/metro-config": "0.73.5", "@react-native/typescript-config": "0.73.1", "@types/react": "^18.2.6", "@types/react-native-push-notification": "^8.1.4", "@types/react-native-vector-icons": "^6.4.18", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.6.3", "eslint": "^8.19.0", "jest": "^29.6.3", "prettier": "2.8.8", "react-test-renderer": "18.2.0", "typescript": "5.0.4" }, "engines": { "node": ">=18" }

@Mokutte
Copy link

Mokutte commented May 3, 2024

I don't use firebase or google services and use local push notification , but I get this error message when starting my app on an Android-device:

"Default FirebaseApp is not initialized in this process com.client. Make sure to call FirebaseApp.initializeApp(Context) first."

Here are all the npm packages I use in the project: "dependencies": { "@react-native-async-storage/async-storage": "^1.22.1", "@react-native-community/push-notification-ios": "^1.11.0", "@react-navigation/bottom-tabs": "^6.5.12", "@react-navigation/native": "^6.1.10", "@react-navigation/native-stack": "^6.9.18", "axios": "^1.6.7", "react": "18.2.0", "react-native": "0.73.4", "react-native-calendars": "^1.1304.1", "react-native-document-picker": "^9.1.1", "react-native-fs": "^2.20.0", "react-native-image-picker": "^7.1.0", "react-native-localize": "^3.0.6", "react-native-media-controls": "^2.3.0", "react-native-permissions": "^4.1.4", "react-native-push-notification": "^8.1.1", "react-native-safe-area-context": "^4.9.0", "react-native-screens": "^3.29.0", "react-native-slider": "^0.11.0", "react-native-vector-icons": "^10.0.3", "react-native-video": "^5.2.1", "react-native-video-thumbnails": "^0.0.0" }, "devDependencies": { "@babel/core": "^7.20.0", "@babel/preset-env": "^7.20.0", "@babel/runtime": "^7.20.0", "@react-native/babel-preset": "0.73.21", "@react-native/eslint-config": "0.73.2", "@react-native/metro-config": "0.73.5", "@react-native/typescript-config": "0.73.1", "@types/react": "^18.2.6", "@types/react-native-push-notification": "^8.1.4", "@types/react-native-vector-icons": "^6.4.18", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.6.3", "eslint": "^8.19.0", "jest": "^29.6.3", "prettier": "2.8.8", "react-test-renderer": "18.2.0", "typescript": "5.0.4" }, "engines": { "node": ">=18" }

I found a solution in another closed issue, make sure your requestPermissions in PushNotification.configure are Platform.OS === 'ios'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants