hansemannn / titanium-firebase-analytics

Use the Firebase Analytics SDK in Axway Titanium 🚀
Other
35 stars 18 forks source link

Set up consent mode for apps #81

Open Astrovic opened 5 months ago

Astrovic commented 5 months ago

Consent mode for apps was updated Oct 30th 2023 and now contains two additional parameters. It would be useful to be able to set these parameters for EEA users.

m1ga commented 3 months ago

Android: https://github.com/hansemannn/titanium-firebase-analytics/pull/82

but not tested yet

Arood commented 3 months ago

Trying to enable this on iOS as I have a client asking for it, however to verify Google mentions that we need to set a launch argument -FIRAnalyticsVerboseLoggingEnabled when starting the app to see if the permissions are properly granted. Do you guys know if this is possible in Titanium?

Astrovic commented 2 months ago

@Arood Maybe you can do this by launching the app from Xcode, but I've never tried. Here the doc: https://firebase.google.com/docs/analytics/events?platform=ios#view_events_in_the_xcode_debug_console

I added setConsent() method for iOS and Android: https://github.com/hansemannn/titanium-firebase-analytics/pull/84#issue-2293101320