Android/iOS - login and setEmail/setPhoneNumber/setUserName functions are sometimes not working #1198
Open
4 tasks done
Labels
bug
Something isn't working
I will try to do my best but this issue is pretty weird but yet, REALLY important. It's related to #777 and #627
Sometimes, for a reason I don't understand, the
login
andsetEmail
/setPhoneNumber
/setUserName
functions seem doing nothing. This results in unidentified users that have subscriptions not linked to our backend because theapp_user_id
will be the anonymous one and not the custom one we are using.Then, when the app is killed and opened again, the functions will work correctly.
My login function is pretty simple :
When the app is launched, this
useEffect
is called :That's it. Nothing special, the paywall are working correctly, the app is already in production and I have 0 errors or warnings. But as I said, for 1 on 10 users, I will see in RevenueCat dashboard that they have an active subscription without our custom
userId
and without theemail
,phoneNumber
andusername
specified. It literally means that we are losing subscriptions and subscribers.The text was updated successfully, but these errors were encountered: