Closed gboyegadada closed 3 years ago
I finally found out that a separate identity key was being used in our original android app. I think that is related to this part of the documentation:
Your app server authentication code needs to be modified so that is uses the Intercom Android API Secret to create a HMAC digest (hash based message authentication code) from the user id or email address for that user. Then it returns the HMAC digest to your Android app. Note that identity verification does not apply to unidentified users, for whom you do not have a user id or email address.
Hello @gboyegadada Can you please expand more on how you got to set a user hash to the logged in user? I cannot find any specific documentation here? & is it possible to generate the hash on the client side not the server side?
Hi, I am getting this error in the Logcat:
As well as this in my app:
Steps taken:
I generate the hmac user hash on the server side (PHP using Symfony framework) as in the Intercom documentation:
In my mobile app, I set the user hash:
I also checked to make sure the
setUserHash
is called in the android part of the library and it does callIntercom.client().setUserHash(userHash)
with the hash that I pass from react but the verification always fails.We originally had a native android app and verification was fine but I am unable to verify in react native.
Please help !