setUserProperty() sometimes is not working.

setUserProperty() sometimes is not working. For example I have the following code:

async componentDidMount(){

    // Set screen event name.
    this.props.screenProps.firebase.analytics().setCurrentScreen('Grocery Screen.'); // <-- This is updated correctly

    // Log out that the menu wasn't opened to Firebase
    if(!this.categoryMenuWasOpened){
      await this.props.screenProps.firebase.analytics().setUserProperty('Category_Menu_Opened', 'No'); // This is **not** updated correctly
      console.log('Updated category menu "No".');
    }

    // Log out that the search bar isn't being used to Firebase
    if(!this.searchBarUsed){
      await this.props.screenProps.firebase.analytics().setUserProperty('Search_Bar_Used', 'No'); // <-- This is sometimes updated correctly
      console.log('Updated Search Bar "No".'); 
    }
  }

(Both console.log() are always triggered.)

Screenshot of Firebase Debug View:
firebase_not_updating_properties

Environment

  1. Target Platform (e.g. iOS, Android): Android
  2. Development Operating System (e.g. macOS Sierra, Windows 10): Ubuntu 16.04
  3. Build tools (Xcode or Android Studio version, iOS or Android SDK version, if relevant): Not relevant
  4. React Native version (e.g. 0.45.1): 0.46.4
  5. RNFirebase Version (e.g. 2.0.2): 2.0.4

Author: Fantashit

1 thought on “setUserProperty() sometimes is not working.

  1. I’m having a similar issue with or without using async/await — neither setUserProperty nor setUserProperties seem to work — even though other methods like trackEvent and setCurrentScreen work well.

    here’s a simple example of my code that’s not working:

    import firebase from "react-native-firebase";
    firebase.analytics().setUserProperty('key', 'value' );
    

    Target Platform: Android
    Development Operating System MacOS High Seria
    Firebase SDK Firebase-5.14.0
    React Native 0.55.4
    react-native-firebase 5.1.1

Comments are closed.

setUserProperty() sometimes is not working.

setUserProperty() sometimes is not working. For example I have the following code:

async componentDidMount(){

    // Set screen event name.
    this.props.screenProps.firebase.analytics().setCurrentScreen('Grocery Screen.'); // <-- This is updated correctly

    // Log out that the menu wasn't opened to Firebase
    if(!this.categoryMenuWasOpened){
      await this.props.screenProps.firebase.analytics().setUserProperty('Category_Menu_Opened', 'No'); // This is **not** updated correctly
      console.log('Updated category menu "No".');
    }

    // Log out that the search bar isn't being used to Firebase
    if(!this.searchBarUsed){
      await this.props.screenProps.firebase.analytics().setUserProperty('Search_Bar_Used', 'No'); // <-- This is sometimes updated correctly
      console.log('Updated Search Bar "No".'); 
    }
  }

(Both console.log() are always triggered.)

Screenshot of Firebase Debug View:
firebase_not_updating_properties

Environment

  1. Target Platform (e.g. iOS, Android): Android
  2. Development Operating System (e.g. macOS Sierra, Windows 10): Ubuntu 16.04
  3. Build tools (Xcode or Android Studio version, iOS or Android SDK version, if relevant): Not relevant
  4. React Native version (e.g. 0.45.1): 0.46.4
  5. RNFirebase Version (e.g. 2.0.2): 2.0.4

Author: Fantashit

2 thoughts on “setUserProperty() sometimes is not working.

  1. I’m having a similar issue with or without using async/await — neither setUserProperty nor setUserProperties seem to work — even though other methods like trackEvent and setCurrentScreen work well.

    here’s a simple example of my code that’s not working:

    import firebase from "react-native-firebase";
    firebase.analytics().setUserProperty('key', 'value' );
    

    Target Platform: Android
    Development Operating System MacOS High Seria
    Firebase SDK Firebase-5.14.0
    React Native 0.55.4
    react-native-firebase 5.1.1

  2. Pingback: replica rolex

Comments are closed.

setUserProperty() sometimes is not working.

setUserProperty() sometimes is not working. For example I have the following code:

async componentDidMount(){

    // Set screen event name.
    this.props.screenProps.firebase.analytics().setCurrentScreen('Grocery Screen.'); // <-- This is updated correctly

    // Log out that the menu wasn't opened to Firebase
    if(!this.categoryMenuWasOpened){
      await this.props.screenProps.firebase.analytics().setUserProperty('Category_Menu_Opened', 'No'); // This is **not** updated correctly
      console.log('Updated category menu "No".');
    }

    // Log out that the search bar isn't being used to Firebase
    if(!this.searchBarUsed){
      await this.props.screenProps.firebase.analytics().setUserProperty('Search_Bar_Used', 'No'); // <-- This is sometimes updated correctly
      console.log('Updated Search Bar "No".'); 
    }
  }

(Both console.log() are always triggered.)

Screenshot of Firebase Debug View:
firebase_not_updating_properties

Environment

  1. Target Platform (e.g. iOS, Android): Android
  2. Development Operating System (e.g. macOS Sierra, Windows 10): Ubuntu 16.04
  3. Build tools (Xcode or Android Studio version, iOS or Android SDK version, if relevant): Not relevant
  4. React Native version (e.g. 0.45.1): 0.46.4
  5. RNFirebase Version (e.g. 2.0.2): 2.0.4

Author: Fantashit

1 thought on “setUserProperty() sometimes is not working.

  1. I’m having a similar issue with or without using async/await — neither setUserProperty nor setUserProperties seem to work — even though other methods like trackEvent and setCurrentScreen work well.

    here’s a simple example of my code that’s not working:

    import firebase from "react-native-firebase";
    firebase.analytics().setUserProperty('key', 'value' );
    

    Target Platform: Android
    Development Operating System MacOS High Seria
    Firebase SDK Firebase-5.14.0
    React Native 0.55.4
    react-native-firebase 5.1.1

Comments are closed.