Top

Adding contact to Roster using email

Respondida

Comentarios

2 comentarios

  • 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
    Acciones de comentarios Permalink
  • Prakash

    Thank you Oliver.

    0
    Acciones de comentarios Permalink

Iniciar sesión para dejar un comentario.

  • Pregunte a la Comunidad

    ¿Necesitas ayuda? Haz tus preguntas en la Comunidad para obtener respuestas de otros usuarios de Rainbow.

    Enviar un mensaje.