capacitor-community / capacitor-community/firebase-analytics

No data are visible in the firebase analytics console in localhost

Open
#172 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
178
Forks
70
PR merge metrics
No merged PRs in 30d

Description

**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](https://github.com/capacitor-community/firebase-analytics/assets/54345950/6e87a5de-33b7-459a-9921-0790ddc9935c)

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.