vonage conversations create `
--name='your_conversation' `
--display-name='Your conversation' `
--image-url='https://manchuck.com' `
--ttl=600 `
--phone-number=16127779311 `
--callback-url='https://example.com/conversations/callback' `
--callback-event-mask='audio:mute:on' `
--callback-event-mask='audio:mute:off' `
--callback-method='GET' `
--callback-application-id='00000000-0000-0000-0000-000000000000' `
--callback-ncco-url='https://example.com/conversations/ncco'
✅ Fetching conversation
Name: your_conversation
Conversation ID: CON-00000000-0000-0000-0000-000000000000
Display Name: Your Conversation
Image URL: https://tinyurl.com/5ey2vhw2
State: ACTIVE
Time to Leave: 600
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
Java
Create a Conversation
Create the Conversation that users will use to communicate with each other.
vonage conversations create ^
--name='your_conversation' ^
--display-name='Your conversation' ^
--image-url='https://manchuck.com' ^
--ttl=600 ^
--phone-number=16127779311 ^
--callback-url='https://example.com/conversations/callback' ^
--callback-event-mask='audio:mute:on' ^
--callback-event-mask='audio:mute:off' ^
--callback-method='GET' ^
--callback-application-id='00000000-0000-0000-0000-000000000000' ^
--callback-ncco-url='https://example.com/conversations/ncco'
✅ Fetching conversation
Name: your_conversation
Conversation ID: CON-00000000-0000-0000-0000-000000000000
Display Name: Your Conversation
Image URL: https://tinyurl.com/5ey2vhw2
State: ACTIVE
Time to Leave: 600
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' \ --display-name='Your conversation' \ --image-url='https://manchuck.com' \ --ttl=600 \ --phone-number=16127779311 \ --callback-url='https://example.com/conversations/callback' \ --callback-event-mask='audio:mute:on' \ --callback-event-mask='audio:mute:off' \ --callback-method='GET' \ --callback-application-id='00000000-0000-0000-0000-000000000000' \ --callback-ncco-url='https://example.com/conversations/ncco' ✅ Fetching conversation Name: your_conversation Conversation ID: CON-00000000-0000-0000-0000-000000000000 Display Name: Your Conversation Image URL: https://tinyurl.com/5ey2vhw2 State: ACTIVE Time to Leave: 600 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
Make a note of this newly generated conversation Id (CON-...). You will use it later to add Users to the Conversation as Members.
Creating an Android chat app
Create a Android application that enables users to message each other using the Android Client SDK and Java.
Steps
1
Introduction to this task2
Prerequisites3
Create a Vonage Application4
Create a conversation5
Create the users6
Add users to the conversation7
Generate JWTs8
Create an Android project9
Add permissions10
Build main screen11
Initialize the client12
Fetch the conversation13
Fetch conversation events14
Send a message15
Receive new messages16
What's next?