Cap-go / capacitor-crisp

Crisp native SDK for capacitor

Home Page:https://www.npmjs.com/package/capacitor-crisp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't call setUser

davidecampello opened this issue · comments

Hi! Thank you for this amazing plugin! I'm trying to call setUser after configure but I'm having a double setUser call, one with the right parameters and one with undefined so user are always null.
I don't have the code at the moment but I can provide an example.
Is the setUser functionality working?

Hello yes it was working on my side, are you sure you don't initialize twice ?

Hi @riderx, I have the same issue when calling CapacitorCrisp.setUser({ nickname: this.user.name, email: this.user.email, phone: this.user.phone })

Two setUser calls are made for me too, one with the passed parameters and one with undefined (see attached screenshot)
SCR-20240320-krom

@davidecampello did you end up finding a solution for this?