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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

expo-firebase-analytics doesn't allow number in property names #8390

Closed
frantic opened this issue May 20, 2020 · 2 comments
Closed

expo-firebase-analytics doesn't allow number in property names #8390

frantic opened this issue May 20, 2020 · 2 comments

Comments

@frantic
Copy link

frantic commented May 20, 2020

馃悰 Bug Report

Environment

  Expo CLI 3.20.1 environment info:
    System:
      OS: macOS 10.15.4
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 13.12.0 - /usr/local/bin/node
      Yarn: 1.22.4 - ~/.yarn/bin/yarn
      npm: 6.14.4 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    IDEs:
      Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^37.0.0 => 37.0.7 
      react: 16.9.0 => 16.9.0 
      react-dom: 16.9.0 => 16.9.0 
      react-native: https://github.com/expo/react-native/archive/sdk-37.0.0.tar.gz => 0.61.4 
      react-native-web: ^0.11.7 => 0.11.7 
    npmGlobalPackages:
      expo-cli: 3.20.1

Developing inside Expo app on iOS

Steps to Reproduce

Analytics.setUserProperties({hello_11: 'test'});

Expected Behavior

User property is set

Actual Behavior

Promise returned from setUserProperties is rejected with:

"Error: Invalid user-property name specified. Should contain 1 to 24 alphanumeric characters or underscores. The name must start with an alphabetic character"

Looking into the code

This comment claims the property name should be alphanumeric and not start with number. However the actual code rejects all properties with numbers.

@byCedric
Copy link
Member

Hi @frantic! Awesome, thanks for the issue report and the fix 馃槃 We will take a look at it and merge it asap!

@EvanBacon
Copy link
Contributor

fixed in #8516

@IjzerenHein IjzerenHein removed their assignment Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants