Skip to content

Unable to set userId to null #49

@ramoncarreras

Description

@ramoncarreras

Describe the bug
setUserId method does not accept null.

https://github.com/capacitor-community/firebase-analytics/blob/master/src/web.ts#L83

To Reproduce

   FirebaseAnalytics.setUserId({
       userId: null,
   });

Expected behavior
When the user logs out, it must be possible to assign null value to it.

See here: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics#public-void-setuserid-string-id

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions