Search form

Documentation

Running Chat Sample - iOS

Prerequisites

  • Build the sample
  • Install the Chat sample app on two iOS devices.
  • Both iOS devices must be connected to the same Wi-Fi network.

Run AllJoyn™ Chat

Launch the AllJoyn Chat app on two iOS devices.

The AllJoyn Chat should now now be running on both iOS devices. The initial screen should look like this:

Figure: Chat startup screen

Chat using a session

  1. On both devices, ensure that the Use a session option is toggled to ON.

  2. On one device, select the Host button, then press Start. On the second device, select the Join button, then press Start. The screen on both apps should look like this:

Figure: Initial message screen

  1. On one device, enter a message and press Send. The message appears on the device it was entered on, and also on the second device. Example screenshots:

Figure: Device 1 sends "hello"

Figure: Device 2 receives "hello" from device 1

Figure: Device 2 responds with "hi"

Figure: Device 1 receives "hi" from device 2

Chat using sessionless signals

  1. On both devices, ensure that the Use a session option is toggled to OFF.

Figure: Chat startup screen

  1. On both devices, press Start. The screen on both apps should look like this:

Figure: Initial message screen

  1. On one device, enter a message and press Send. The message appears on the device it was entered on, and also on the second device. Example screenshots:

Figure: Device 1 user types "hi"

Figure: Device 1 receives "hey" response from Device 2

For future news and updates, please follow or visit https://t.co/MKr1Z9NPji
6 months 3 weeks ago