Git Product home page Git Product logo

conversations-quickstart-android's Introduction

Conversations Quickstart App for Android

This is a lightweight Android application for Twilio Conversations.

Configuring and getting started

This demo requires a Twilio account and a working Conversations Service SID. Here is what is needed:

  • Your Account's Conversation Service Sid ISXXX SID which is attached to your Conversation Service. You can find that information in the Twilio Console. You can also create a service there if you don't already have one.

Replacing the Access Token

In order for your quickstart application to work, we need to authenticate an end user by retrieving a short-lived access token attached to your API Key. The strings.xml resource has a placeholder for your access token named test_access_token.

You can generate a token in a few ways:

For the twilio-cli option, run the following command and enter the resulting token into the placeholder:

twilio token:chat --identity <The test username> --chat-service-sid <ISXXX...>

Note: You need to generate an access token with a ChatGrant for a Conversations user to use the Twilio Conversations Client SDK.

After generating a token manually, it will expire after a timeout period, so you will need to replace the token. To use this in production software, you would typically create a token endpoint in your back end application that uses your existing user authentication strategy.

conversations-quickstart-android's People

Contributors

jefflinwood avatar pavel-cherentsov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.