searchRainbowContactWithEmailString in Android
Hello I'm new for the Android Rainbow SDK.
I made a Rainbow app for iOS and I used ContactsManagerService.searchRainbowContactWithEmailString() method in the app. I am now making an app for Android that has same features as the iOS version, but I do not find the same type method. I need search a particular Rainbow contact based on the login email address.
Is there a method in the Android Rainbow that I can use for that purpose?
I also noticed that IRainbowContact.loginEmail is deprecated but I really need it.
Yes loginEmail has been marked as deprecated because in a near future we want to remote that property from any users except the logged-in user. This change will affect all SDK and the REST API.
LoginEmail is a sensitive data that should not be shared.
I encourage you to rely on the Rainbow user Id which is the public user unique identifier. The Rainbow JID (or jid_im) is the secondary user public identifier that can be used if needed.
Hello Olivier, thank you for the information.
Is the Rainbow user id (contact ID) known by each Rainbow user?
The reason I'm using the login email is because it is a mandatory and unique member of IRainbowContact per Rainbow user.
This application has to set a target Rainbow contact that the app needs to establish a Rainbow conversation with.
Other members, e.g., mainEmailAddresses, firstEmailAddresses can be null and not necessary to be unique among all Rainbow users.
I know the contact ID is unique among all Rainbow users, but not sure if it can be used by users.
Please sign in to leave a comment.