Top

iOS | Personal contacts

Comments

8 comments

  • Le-Trong-Nghia HUYNH

    Hello,

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

    ServicesManager.sharedInstance().myUser.isAllowedToUsePersonalDirectory
    0
    Comment actions 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
    Comment actions 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
    Comment actions 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
    Comment actions 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
    Comment actions 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
    Comment actions 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
    Comment actions Permalink
  • Patrik Spisak

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

    0
    Comment actions Permalink

Please sign in to leave a comment.

Still can't find what you need?

  • Contact Us

    Do you have any question about Rainbow? Leave us a message to get more information.

    Contact
  • Ask the Community

    Do you need help? Ask your questions to the Community and get answers from other Rainbow users.

    Post message