Skip to main content
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.

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