twiliodeved / twiliochat-android Goto Github PK
View Code? Open in Web Editor NEWAndroid implementation of Twilio Chat
Home Page: https://www.twilio.com/docs/chat/tutorials/chat-application-android-java
License: MIT License
Android implementation of Twilio Chat
Home Page: https://www.twilio.com/docs/chat/tutorials/chat-application-android-java
License: MIT License
I created an account on twilio also created my own server which fetches me the token, I made required changes according to the latest sdk in this app but i am stuck in the populateChannel method on mainchatActivity.
Failed to fetch the token when opening the app, I am running this sample on an emulator. the sample token URL (http://10.0.2.2:3000/token) is not working.
Please help...
I ran the server (https://github.com/TwilioDevEd/twiliochat-servlets) using my account information and changed token_url like here:
<string name="token_url">"https://4cd44938.ngrok.io/twiliochat-servlets-master/token"</string>
When I tried to make a login I got this:
Can you please point me to the right direction?
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
// Getting list of servcies
Service service = Service.fetcher(CHAT_SERVICE_ID)
.fetch();
Using implementation "com.twilio:chat-android:3.1.1"
implementation group: "com.twilio.sdk", name: "twilio", version: "7.42.0"
implementation 'com.twilio:accessmanager-android:0.1.0'
request to EMS service has failed, unable to set FPA token what do you mean this notification
How to Create one to one Chat conversation?
There is no exception that is caught.
I am only getting these errors -
E/libc++abi: terminating with uncaught exception of type std::range_error: wstring_convert: from_bytes error
A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 31131 (.packageName), pid 31131 (.packageName)
A/libc: FORTIFY: pthread_mutex_destroy called on a destroyed mutex (0x719c91b9a0)
Issue occurs in -
private void initializeClient() {
chatClientManager.connectClient(new TaskCompletionListener<Void, String>() {
@OverRide
public void onSuccess(Void aVoid) {
populateChannels();
}
@Override
public void onError(String errorMessage) {
stopActivityIndicator();
showAlertWithMessage("Client connection error");
}
});
}
This is when it has shown the message getting channels. The message shown to the user is Client Connection error - however the underlying message is 'Request to EMS service has failed, unable to set FPA'
I know the server works find as the server tests run okay, and I have connected the iOS App to the Server and it is working fine.
Hi
I have already create Auth token from our server with own api so no need to generate auth token from ngrok then where i should place generated auth token and one more thing what should i pass in username field...?
when i pass dummy username then it will displaying sign in dialog continuously , not getting channel list, so how can i get channel list from twillio account or any general channel list
Help me.
Thanks.
Hello,
I added https://chattoken-5019.twil.io/chat in the keys. xml and ran the app but there is an error = Command timeout reached:
Then I tried running these 3 types but the error is still the same:
https://chattoken-5019.twil.io/chat?identity=test
"https://chattoken-5019.twil.io/chat?identity=test"
"https://chattoken-5019.twil.io/chat"
How to fix the error?
Thank you.
JFYI, compile "com.twilio:chat-android:0.11.2"
is a pre-release version that is no longer supported and it will not even connect nowadays.
In the android project the request method is GET
Where as in token.js it expect POST method
Because of different request method it is throwing error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.