Code Monkey home page Code Monkey logo

Comments (6)

robations avatar robations commented on July 25, 2024 1

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.

FdezRomero avatar FdezRomero commented on July 25, 2024

Reinstalling the plugin with google-services.json already present seems to have fixed the issue. Closing.

from cordova-plugin-firebase-analytics.

robations avatar robations commented on July 25, 2024

@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.

FdezRomero avatar FdezRomero commented on July 25, 2024

@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.

robations avatar robations commented on July 25, 2024

@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.

FdezRomero avatar FdezRomero commented on July 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.