Top

Adding contact to Roster using email

Answered

Comments

2 comments

  • Olivier ANGUENOT

    Hi Prakash,

    Using IOS, you need to call the following method to do the same as for Android:

    func invite(contact: Contact) {
        ServicesManager.sharedInstance()?.contactsManagerService.inviteContact(contact)
    }
     
    A request will be sent to the Rainbow user. 
     
    In addition to listen to the event `kContactsManagerServiceDidUpdateContact` to be informed when the `sentInvitation` property has changed, you can listen to events `kContactsManagerServiceDidInviteContact` and `kContactsManagerServiceDidFailedToInviteContact`. This can be important because sending an invitation can failed if you send it several times quickly. Only one invitation can be sent to a Rainbow user by hour if the invitation has not been declined by your recipient or canceled by you.
     
    Regards,
    Olivier
    1
    Comment actions Permalink
  • Prakash

    Thank you Oliver.

    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