Swift
Criar uma conversa
Crie o Conversa que os usuários utilizarão para se comunicarem entre si. Substitua o ID do aplicativo da Vonage no comando abaixo:
Copiar
vonage conversations create `
--name='your_conversation'
✅ Fetching conversation
Name: your_conversation
Conversation ID: CON-00000000-0000-0000-0000-000000000000
Display Name: Not Set
Image URL: Not Set
State: ACTIVE
Time to Leave: Not Set
Created at: 08/29/1997, 02:14:00 AM
Updated at: Not Set
Destroyed at: Not Set
Sequence: 0
Media State:
Earmuffed: ❌ No
Muted: ❌ No
Playing Stream: ❌ No
Recording: ❌ No
Transcribing: ❌ No
Text To Speech: ❌ No
Copiar
vonage conversations create ^
--name='your_conversation'
✅ Fetching conversation
Name: your_conversation
Conversation ID: CON-00000000-0000-0000-0000-000000000000
Display Name: Not Set
Image URL: Not Set
State: ACTIVE
Time to Leave: Not Set
Created at: 08/29/1997, 02:14:00 AM
Updated at: Not Set
Destroyed at: Not Set
Sequence: 0
Media State:
Earmuffed: ❌ No
Muted: ❌ No
Playing Stream: ❌ No
Recording: ❌ No
Transcribing: ❌ No
Text To Speech: ❌ No
vonage conversations create \
--name='your_conversation'
✅ Fetching conversation
Name: your_conversation
Conversation ID: CON-00000000-0000-0000-0000-000000000000
Display Name: Not Set
Image URL: Not Set
State: ACTIVE
Time to Leave: Not Set
Created at: 08/29/1997, 02:14:00 AM
Updated at: Not Set
Destroyed at: Not Set
Sequence: 0
Media State:
Earmuffed: ❌ No
Muted: ❌ No
Playing Stream: ❌ No
Recording: ❌ No
Transcribing: ❌ No
Text To Speech: ❌ No
Anote esse ID de conversa recém-gerado (CON-...). Você vai usá-lo mais tarde para adicionar Usuários para o Conversa como Membros.
Criação de um aplicativo de bate-papo para iOS
Crie uma aplicação para iOS que permita que os usuários troquem mensagens entre si
Etapas
1
Introdução a esta tarefa2
Prerequisites3
Criar uma aplicação da Vonage4
Iniciar uma conversa5
Criar os usuários6
Gerar JWTs7
Projeto e área de trabalho do Xcode8
Criação da interface de login9
VGChatClient10
Criação da interface de bate-papo11
Eventos de bate-papo12
Enviando uma mensagem13
E agora?