firebase icon indicating copy to clipboard operation
firebase copied to clipboard

Error calling setConsent() in the last version.

Open loranttoth opened this issue 1 year ago • 2 comments

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

loranttoth avatar Feb 27 '24 20:02 loranttoth

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.

dsvishchov avatar Feb 29 '24 17:02 dsvishchov

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

sommistica avatar Sep 20 '24 11:09 sommistica