NativeScript / firebase

Modular Firebase 🔥 implementation for NativeScript. Supports both iOS & Android platforms for all Firebase services.
https://docs.nativescript.org/plugins/firebase-core.html
Apache License 2.0
52 stars 46 forks source link

Support for new version of Firebase #241

Closed loranttoth closed 4 months ago

loranttoth commented 4 months ago

Due to European Union legislation, it becomes necessary to add 2 new elements to the consent data to be sent to firebase (via analytics version 21.5.0). Accordingly, firebase released a new version of the library (firebaseBOMVersion: 32.5.0+). We would therefore need a new version of nativescript/firebase, which would enable the transfer of this data. Are you planning to release a new version accordingly?

triniwiz commented 4 months ago

Thanks for the heads-up, I'll release an update soon.

loranttoth commented 4 months ago

Thank you for your quick answer, I'll be waiting for the update version!

triniwiz commented 4 months ago

Done https://github.com/NativeScript/firebase/commit/0636cd44f691ab9100df63b7f7b39dcfb542c2ef

loranttoth commented 4 months ago

Hi triniwiz,

thanks for the new version! Unfortunately I have a new error on Android platform, that I've not seen before. It caused when I call logEvent() from NativeScript. The message: "Error: java.lang.Exception: Failed resolving method logEvent on class com.google.firebase.analytics.AnalyticsKt"

These are the versions we use in the package.json: "@angular/compiler-cli": "^14.3.0", "@nativescript/android": "8.6.2", "@nativescript/ios": "8.6.3", "@nativescript/types": "8.6.1", "@nativescript/webpack": "^5.0.18", "nativescript": "8.6.5",

Do yo have any idea or suggestion how to solve this error?

Also I think, still missing the 2 new consent type use case from the index.android.ts setConsent() function (there are two case in the switch, and need another two new ones (AD_USER_DATA, AD_PERSONALIZATION).

Thanks for your help, keep going with the good job!

triniwiz commented 4 months ago

@loranttoth good to go on the latest

loranttoth commented 4 months ago

Hi triniwiz,

Thank you very match! The latest version works well!