How to create a location-based group

Create group channel process

  1. The application sends an HTTP request to the Application Server with the location and range to create a group channel
  2. The Application Server creates the group channel and caches the location and range
  3. The Application Server calls the Nexconn Server API (/v4/group-channel/create) to notify Nexconn of the group channel information

Join and quit group channel process

  1. The application collects the user’s location in real time and periodically sends an HTTP request to the Application Server with the user’s location
  2. The Application Server checks the user’s group channel based on the location. If the user leaves the group channel range, it triggers the quit group channel process. If the user enters a group channel range, it triggers the join group channel process

Join group channel process (after the Application Server receives the user’s location)

  1. The Application Server calls the Nexconn Server API (/v4/direct-channel/message/send) to send a custom message inviting the user to join the group channel
  2. The application shows a pop-up to prompt the user to join. The application sends an HTTP request to the Application Server when the user agrees or declines
  3. The Application Server processes the user’s join or decline request based on the HTTP request parameters
  4. If the user joins, the Application Server calls the Nexconn Server API (/v4/group-channel/join) to notify Nexconn of the user joining

Quit group channel process (after the Application Server receives the user’s location)

  1. The Application Server removes the user from the group channel
  2. The Application Server calls the Nexconn Server API (/v4/group-channel/quit) to notify Nexconn of the user quitting
  3. The Application Server calls the Nexconn Server API (/v4/direct-channel/message/send) to send a custom message about the user quitting
  4. The application notifies the user that they’ve quit the group channel