Skip to content

Analytics.setUserProperty nil doesn't remove it #3230

Closed
@victor-sarda

Description

@victor-sarda

Describe your environment

  • Xcode version: 10.2.1
  • Firebase SDK version: 6.3.0
  • Firebase Component: Analytics
  • Component version: 6.3.0

Describe the problem

When setting a user property value to nil with Analytics.setUserProperty I'm expecting it to be removed on Firebase as the documentation says:

The value of the user property. Values can be up to 36 characters long. Setting the value to nil removes the user property.

Steps to reproduce:

  1. Send a user property on firebase analytics like this
    Analytics.setUserProperty(<property>, forName: <name>).
  2. Go to the debug view in the firebase console and check that property is set
  3. Call Analytics.setUserProperty(nil, forName: <name>)
  4. Go back to the debug view

The property is still here in the debug view but I'm expecting it to be gone. This is quite annoying since we can only set 25 properties but we can't remove any.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions