Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setUserProperties not working #191

Open
mbattara opened this issue Sep 26, 2024 · 0 comments
Open

setUserProperties not working #191

mbattara opened this issue Sep 26, 2024 · 0 comments

Comments

@mbattara
Copy link

mbattara commented Sep 26, 2024

Hi,
I am using the following setup:

Ionic version 7.2.0
Capacitor version 6.1.0
@capacitor-community/firebase-analytics version 6.0.0

I am using Firebase Analytics with an Android smartphone.

When I try to call this function:
async setUserProperty(name: string, value: string){
try{
await FirebaseAnalytics.setUserProperty({
name: name,
value: value,
});
} catch(e){
console.error("Error setting", name, "with property:", value, e)
}
}

with these parameters:
await this.setUserProperty('hashed_email', 'mia@mail');

The system enters the catch block with this error message: "key must be provided."

However, in the Firebase Console's debug view, I can see my property being set.
In the Firebase Console, I added my custom user property definition hashed_email.

Has anyone encountered this issure? Is there a problem in my implementation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant