Ionic & Cordova App integration with Firebase Analytics SDK Modular API

86 views
Skip to first unread message

Santiago Martínez

unread,
Apr 12, 2024, 10:25:49 PM4/12/24
to Firebase Google Group
Hi,

Where I work, we have an app made with Ionic+Cordova. We tried to use Firebase Analytics Modular SDK and it works on web but not on Android app.

When I go to Debugview for the webapp in Firebase Analytics, I can see the events and parameters arriving but when I do the same for Android app it doesn't work. The events and their parameters do not arrive.

Something I have noticed is that when I inspect the Webapp in the network developer tool, I see that when I do an interaction that I measure, two requests are activated. One is ping type and the other is fetch type. I understand that Ping is to validate the connection and fetch is to send the hit to google-analytics.com...

However, when I also inspect in the network developer tool, I see that it only fires the ping request and the fetch request does not fire at any time (finally the app is made with JS, HTML and CSS, it can be inspected through chrome://inspect/#devices, there I can clone/emulate the application that I am running on my Android device and see what is activated and what is not).

Regards!

Reply all
Reply to author
Forward
0 new messages