Top

SDK Get No Contact and Cannot Make Call

Comentários

5 comentários

  • 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
    Ações de comentário 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
    Ações de comentário Permalink
  • Olivier ANGUENOT

    Hi Chan,

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

    0
    Ações de comentário 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
    Ações de comentário 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
    Ações de comentário Permalink

Por favor, entrar para comentar.

Ainda não consegue encontrar o que você precisa?

  • Contate-nos

    Você tem alguma pergunta sobre o Rainbow? Deixe-nos uma mensagem para obter mais informações.

    Contato
  • Pergunte à Comunidade

    Você precisa de ajuda? Faça suas perguntas na Comunidade para obter respostas de outros usuários do Rainbow.

    Enviar mensagem