twilio / video-quickstart-ios

Twilio Video Quickstart for iOS
https://www.twilio.com/docs/api/video
MIT License
460 stars 177 forks source link

Setting up Server to generate Access Tokens [help wanted] #544

Closed ksuhr1 closed 3 years ago

ksuhr1 commented 3 years ago

Description

Hi there, I want to set up a server for my iOS app that uses programmable video, based on the videoquickstart app. The examples I see to create an access token server is in different languages other than Swift. I'm not sure how to integrate say if I'm using a Node js example https://github.com/TwilioDevEd/video-access-token-server-node with my iOS project. I'd like to prepare my project for deployment and am confused about this section. Any help would be great. Thank you!

designzoo-adrian commented 3 years ago

You will need to deploy a server running the code to generate your access token that you can then use inside your IOS App to connect to a room. Your could deploy this code for production on heroku, aws etc. with a public url. e.g. https://mytwiliovideoapp.com You would need to deploy a node app similar to the example, with all your config params e.g. api keys to be your own Twilio account details. https://github.com/TwilioDevEd/video-access-token-server-node

Essentially Inside the iOS App

This section documents the various languages you can use to generate an access token and return it into your IOS/Web/Android App if you want to use something other than nodeJS. https://www.twilio.com/docs/iam/access-tokens

piyushtank commented 3 years ago

See https://github.com/twilio/video-quickstart-ios#setup-an-access-token-server for more information.