Skip to content

Analytic not working with cordova #2791

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

Closed
Pitouli opened this issue Mar 24, 2020 · 2 comments
Closed

Analytic not working with cordova #2791

Pitouli opened this issue Mar 24, 2020 · 2 comments

Comments

@Pitouli
Copy link

Pitouli commented Mar 24, 2020

Describe your environment

  • Operating System version: iOS 13.3, Android 5
  • Browser version: Cordova
  • Firebase SDK version: 7.12
  • Firebase Product: Analytic

Describe the problem

Analytics are working perfectly on the web app, but no data are sent back to the server on the cordova apps (both android or ios).
From the guide, it seems that cordova is officially supported: https://firebase.google.com/support/guides/environments_js-sdk#other_environments

@google-oss-bot
Copy link
Contributor

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@Feiyang1
Copy link
Member

hmm, FirebaseAnalytics generally only works in the native browsers. It has a couple of requirements the environment needs to meet:

  1. cookie access
  2. using http/https protocol

I don't think Cordova meets any of them, so it is a mistake that the doc says it's supported in Cordova. I will update the doc.

#2243 already tracks this issue and I'm closing this one.

@firebase firebase locked and limited conversation to collaborators Apr 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants