Top

No contacts

Respondida

Comentários

5 comentários

  • Pascal BORSCHNECK

    Hi Alexandre.

    Someone from the SDK team will have a look.
    Do you know the SDK version you are using ?

    Best regards,

    Pascal

    0
    Ações de comentário Permalink
  • Pascal BORSCHNECK

    Hi Alexandre, creating a Zendesk ticket.

    0
    Ações de comentário Permalink
  • Alexandre Gay

    I'm using the Android SDK version 1.37.0

    0
    Ações de comentário Permalink
  • Jonathan PETIT

    Hi Alexandre,

     

    It is better for you to use the last version of android sdk which is "1.42.0". We do not support this version.

     

    But, I think, you will have the same problem with the new version.

     

    Please, could you try this? as explained in the documentation?

     

    To retrieve the list of your contacts (they are in your network), you can call the method getRainbowContacts() but you have to listen to the contacts list changes. See more in Guide ArrayItemList.

    You can do that by creating an IItemListChangeListener object in the class which is listening and then register.

    
        public class MyFragmentWhichIsListeningConversations extends Fragment {
            private IItemListChangeListener m_changeListener = new IItemListChangeListener() {
                @Override
                public void dataChanged() {
                    // Do something on the thread UI
                    ArrayItemList<IRainbowContact> contacts = RainbowSdk.instance().contacts().getRainbowContacts();
                }
            };
    
            @Override
            public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
                RainbowSdk.instance().contacts().getRainbowContacts().registerChangeListener(m_changeListener);
                return view;
            }
        
            @Override
            public void onDestroyView() {
                RainbowSdk().instance().contacts().getRainbowContacts().unregisterChangeListener(m_changeListener);
                super.onDestroyView();
            }
        }
    

    Indded, sdk need few times to retrieve all contacts, that why, it is mandatory to listen changes for the contacts list as explained above.
    1
    Ações de comentário Permalink
  • Alexandre Gay

    OK, thank you for your answer, I'm gonna try this way !

    0
    Ações de comentário Permalink

Por favor, entrar para comentar.

  • Pergunte à Comunidade

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

    Enviar mensagem