Comments (6)
The only extra information I can add at the moment is that the Android Firebase docs say to add this line to your gradle file:
apply plugin: 'com.google.gms.google-services'
I can see this line in firebase-hooks, in build-extras.gradle
, but not under platforms/android
(I searched with recursive grep).
from cordova-plugin-firebase-analytics.
Reinstalling the plugin with google-services.json
already present seems to have fixed the issue. Closing.
from cordova-plugin-firebase-analytics.
@FdezRomero (or anyone). I tried:
cordova plugin remove cordova-plugin-firebase-analytics
cordova plugin add cordova-plugin-firebase-analytics
but I still have this error coming from adb logcat. Do I need to do anything with the GoogleService-Info.plist
file, other than leave in the project root? I sort of expected this file to be copied somewhere into platforms/android but I don't see that happening.
from cordova-plugin-firebase-analytics.
@robations GoogleService-Info.plist
is for iOS, Android needs google-services.json
from the root project directory. Maybe that's your problem?
from cordova-plugin-firebase-analytics.
@FdezRomero Thanks for your reply. I think the holidays were too long — of course the plist
file is for iOS, ignore that comment. And I already have this working for iOS.
So I do have the file platforms/android/google-services.json
, as set up by cordova-plugin-firebase-hooks, but still getting the error message Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI
. I'll continue to look for clues.
Edit: additional log message:
01-12 17:35:15.516 3689 3689 E GMPM : GoogleService failed to initialize, status: 10, Missing an expected resource: 'R.string.google_app_id' for initializing Google services. Possible causes are missing google-services.json or com.google.gms.google-services gradle plugin.
from cordova-plugin-firebase-analytics.
In my case the file was also at the right locations, but it wasn't picked up by Firebase. Reinstalling the plugin solved my issue. Sorry I can't be of more help!
from cordova-plugin-firebase-analytics.
Related Issues (20)
- CocoaPods could not find compatible versions for pod "GoogleUtilities/AppDelegateSwizzler"
- Conflict with FCM
- Unable to build project for iOS and Android after adding Firebase Analytics Plugin
- Localstorage not working
- Release notes?
- Library expects a BoM package: com.google.firebase:firebase-analytics HOT 4
- Broken on Capacitor HOT 1
- Android - Data do not send to firebase analytics HOT 6
- Failed to install firebase-analytics in iOS HOT 4
- cordova-plugin-firebase-analytics version 7.0.5 is not working for android platform HOT 2
- EXCEPTION: TypeError: Cannot read properties of undefined (reading 'split') HOT 1
- restrict the events based on bundle id
- Logged Event not reflected in firebase events console. HOT 1
- Missing setConsent implementation
- Version 8.0.0 makes IOS app crash on start. HOT 1
- Module 'FirebaseCore' not found HOT 1
- Module 'FirebaseAnalytics' not found (iOS)
- Problem integrating google-services.json when I already have another google-services.json file from firebase.
- Request for Platform-Specific Plugin Installation or Initialization HOT 1
- Google Analytics warning about version of iOS SDK HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-firebase-analytics.