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
56 stars 50 forks source link

Error calling setConsent() in the last version. #242

Open loranttoth opened 8 months ago

loranttoth commented 8 months ago

Hi!

I got another error in the firebase-analytics lib.

An uncaught Exception occurred on "main" thread. Calling js method run failed Error: java.lang.Exception: Failed resolving method setConsent on class com.google.firebase.analytics.AnalyticsKt

version: 3.2.2

I hope, this time again can solve this problem soon!

Best regards, Lorant

dsvishchov commented 8 months ago

Adding my 50 cents here. For me setConsent does not work in the previous version as well, but only in release build (working fine in debug) throwing an issue that FIRConsentTypeAdStorage is not defined.

Actually trying to access any of variables declared in @nativescript/firebase-analytics/typings/objc!FirebaseAnalytics.d.ts leads to this issue.

sommistica commented 2 months ago

For me i get the same error in debug mode, but also in release mode. Did any of you get it to work somehow?