SDK Get No Contact and Cannot Make Call
I have deployed my application and use it to initialize from WebSDK.
Initialisation is okay but I cannot obtain any contacts using rainbowsdk.contacts.getAll() and have no luck to have call via WebRTC Gateway.
I notice that that is a Rainbow Number for my Rainbow account. Is it has to setup in somewhere of my OXO Connect?
-
Hi Chan,
A call to method rainbowsdk.contacts.getAll() returns the list of contacts that are in the network of the connected user.
You can use additional methods to search for contacts such as searchContactByName().
More information can be found in that guide: https://hub.openrainbow.com/#/documentation/doc/sdk/web/guides/Chatting_with_Rainbow_users
Regards,
Olivier
-
Hio,
It happen to me initially the same. Probably your user don´t have contacts.
I use rainbowSDK.contacts.searchById because I know the Ids from my application.
I also wait until the user connected to start asking for contact information. So I wait until this event has been raised: rainbowSDK.connection.RAINBOW_CONNECTIONCONNECTED
Hope it helps.
Bye,
Alejandro
Por favor, entrar para comentar.
Comentários
5 comentários