androidiosmobilegigya

Gigya - Mobile sdks - new user detection


Given the data provided at onLogin event and considering that I am using RaaS and screenSets. How can I determine if the user is new (I mean just registered) or not?

Note: I'm aware of the property newUser returned, but the documentation says that it does not work with tfa users and I just confirmed that it doesn't work either with email/password accounts which requires email verification.


Solution

  • You are correct, both TFA and email verification create the user in the database prior to them verifying, so the newUser flag is always false by the time the registration is finalized. Depending upon your implementation, you can use the accountCreated webhook to track when new users are created in the database, or accountRegistered webhook if you only want to track fully registered new users.

    https://developers.gigya.com/display/GD/Webhooks