Twilio Video Integration into an app - token questions
Hi, So I have been working with a project where I am integrating twilio video chat into an existing app which uses firebase for the authorization/database using Swift 4. Even following along with twill's own written tutorial I have hit a wall.
I have an app I am working with using swift 4 for iOS development. I have added the twilio framework for video chat and firebase for user authorization and database functionality. I am able to setup a test chat between 2 users but, where I am having an issue is automated process of setting up a room, retrieving a token from my setup server, and sending an invite to a user to join the conference.
To be more specific the app is setup to use Firebase user authentication, when a user wants to join a video chat they click on a button and are directed to a view controller where "friends" of the user are listed, when a user selects a friend they click a button to start a chat, the app creates an entry in firebase to create a database entry for the chat which creates a numeric hash value of the usernames to generate a name for the chat room in the back end and forwards the user to the video chat controller.
Where I am stuck is how/what to write in swift code to send the room name to the token server, retrieve the token, send the token to the original users video controller, send an in app alert to the invited user, with a clickable link the invited user joins the conference, and create an entry in the database once the conference is started. Does anyone have a more detailed tutorial they can link me to so I can figure this out or maybe a completed app on Git (not twilios) so maybe I can see what I am missing? Thanks in advance.
Posted Jun 7, 2018, 7:10 AM UTC