Top

iOS | Personal contacts

Comentários

8 comentários

  • Le-Trong-Nghia HUYNH

    Hello,

    Do you have the permission to use this feature? What do you get with:

    ServicesManager.sharedInstance().myUser.isAllowedToUsePersonalDirectory
    0
    Ações de comentário Permalink
  • Patrik Spisak

    I got true. But I did not expect receive false, because on official app I was able to create personal contact. 

    0
    Ações de comentário Permalink
  • Le-Trong-Nghia HUYNH

    I don't know if it changes anything but I have "builder" instead of "contactBuilder", can you try?

    Also on your official app, you are able to create the account on the same environment / account? If yes, might be something with the appId but the server error is not helpful.

    0
    Ações de comentário Permalink
  • Patrik Spisak

    Does not have any impact change contactBuilder to builder.

    And yes Im using same account for both apps for this reason to debug if is problem only within my custom app or also on official app. But in this case, in official app I will create personal contact with no errors.

    0
    Ações de comentário Permalink
  • Le-Trong-Nghia HUYNH

    I have checked with backend team and the issue is about the country which is empty. It is required and it must be in ISO-3166-1-alpha3 format.

    In the Rainbow SDK you can use following as default:

    ServicesManager.sharedInstance().myUser.contact?.countryCode

    You can also use following property to display the list of countries (as Country object) :

    ServicesManager.sharedInstance().myUser.countries
    0
    Ações de comentário Permalink
  • Patrik Spisak

    Thanks now its working. One more question, how can I check if contact is personal contact or how can I get all personal contacts? 

    0
    Ações de comentário Permalink
  • Le-Trong-Nghia HUYNH

    Thanks for the feedback.

    - Check if contact is personal :

    contact.isDirectoryContact(.personal)

    - Fetch of all personal contacts is not yet available, it has just been developed in official app 114 (not yet released)

    0
    Ações de comentário Permalink
  • Patrik Spisak

    When will be new API available? I see that Rainbow app was updated where fetching personal contacts is already avaialble.

    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