Top

SDK Get No Contact and Cannot Make Call

Kommentare

5 Kommentare

  • Olivier ANGUENOT

    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

     

    0
    Aktionen für Kommentare Permalink
  • Ngo-Kei CHAN

    It seems that I cannot get anything from searchByName() too.

    Is it the matter I am actually not connected to Rainbow Cloud as it said I am not able to make WebRTC call too, after initialize.

    0
    Aktionen für Kommentare Permalink
  • Olivier ANGUENOT

    Hi Chan,

    Did you call the signin() method for connecting to the Sandbox platform (or the appropriate one for Production) ?

    0
    Aktionen für Kommentare Permalink
  • Alejandro SR

    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

    0
    Aktionen für Kommentare Permalink
  • Ngo-Kei CHAN

    After call signin() (to Sandbox), it always return empty Promise from signin() and the object has nothing to browse.....

    Is it something network issue as I can see some 404 warn in debugger.

    0
    Aktionen für Kommentare Permalink

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

  • Fragen Sie die Gemeinschaft

    Brauchen Sie Hilfe? Stellen Sie Ihre Fragen in der Community, um Antworten von anderen Rainbow-Benutzern zu erhalten.

    Nachricht posten