capacitor-community / firebase-analytics

Enable Firebase Analytics for Capacitor Apps
MIT License
162 stars 64 forks source link

No data are visible in the firebase analytics console in localhost #172

Open timeisgolden opened 1 year ago

timeisgolden commented 1 year ago

Describe the bug I have implemented this firebase analytics module in my ionic/capacitor project, which is based on angular

  1. I am using the following command for hot-reloading. ng serve --host 192.168.1.198 --port 8100

    • capacitor.config.ts
      const config: CapacitorConfig = {
      appId: "com.test.forms",
      appName: "*test*",
      webDir: "www",
      server: {
      url: "http://192.168.1.198:8100",
      cleartext: true,
      },
      plugins: {
      SplashScreen: {
      launchAutoHide: false,
      showSpinner: true,
      },
      Keyboard: {
      resize: KeyboardResize.Ionic,
      },
      },
      };

      when I launch this on my iphone, Data are visible in the dashboard. image

  2. If I remove the server option in capacitor.config.ts and run ionic server, No data are visible in the dashboard.

    const config: CapacitorConfig = {
    appId: "com.***.forms",
    appName: "***",
    webDir: "www",
    plugins: {
    SplashScreen: {
      launchAutoHide: false,
      showSpinner: true,
    },
    Keyboard: {
      resize: KeyboardResize.Ionic,
    },
    },
    };

    look like the app with localhost doesn't work.

Expected behavior I have to see the data in the dashboard in case if I test the app in localhost.

Could you help me?

gasci commented 11 months ago

I am having the same issue. I believe the web part doesn't function anymore?