Solved

Unsetting user properties not working in react-native api module

  • 30 May 2022
  • 1 reply
  • 154 views

code block which for unset user properties

Hello,
I’m using @amplitude/react-native module in my project.
I tried to unset user properties with using `unset()` function in Identify class.

But, it doesn’t work at all although several times of test.

Setting function works fine but it cannot be unset.
Could you check this issue for me?

Additionally, executing method chainly (ex - identify.unset(‘key1’).unset(‘key2’)) occurs error because unset and set method does not returning Identify class instance.

If I using the API in wrong way. Please give me the right way to use.
Thank you.

icon

Best answer by Denis Holmes 31 May 2022, 10:48

View original

1 reply

Userlevel 6
Badge +8

Hi @lafiki ,

 

Thanks for writing in! Can you instead try to call Amplitude.getInstance().identify(identify);
instead of calling the ampInstance variable? I am just curious if that will work instead. Can you then send me your code in a PM along with your Org and Project IDs so I can look further into this for you? Thank you!

Reply