Skip to content

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

Open
@timeisgolden

Description

@timeisgolden

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

  1. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions