cometchat / chat-sdk-android Goto Github PK
View Code? Open in Web Editor NEWText Chat SDK for Android
Home Page: https://www.cometchat.com
Text Chat SDK for Android
Home Page: https://www.cometchat.com
Describe the bug
hashCode()
and equals()
are not overriden in all POJO classes
Expected behavior
all objects are available for comparison using equals()
Actual behavior
methods not available in POJOs
Enviorment/Platfrom (please complete the following information):
Hi a have added the
implementation 'com.cometchat:pro-android-chat-sdk:2.0.3'
implementation 'com.squareup.okhttp3:okhttp:3.12.+'
to my project dependencies
Android Studio build ok while only while is online.
when is offline show this error, what I can do?
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.squareup.okhttp3:okhttp:3.12.+
what I can do?
Describe the bug
Null or random values can be set in the current Request Builder classes
To Reproduce
Example
UsersRequest usersRequest=new UsersRequest.UsersRequestBuilder().setLimit(100)
.setUserStatus(null)
.setSearchKeyword("iron Man").build();
UsersRequest usersRequest=new UsersRequest.UsersRequestBuilder().setLimit(0)
.setSearchKeyword("iron Man").build();
Expected behavior
Should have given an error or warning on setting null values or other than required
Actual behavior
returns result even after setting null values in the builder
Enviorment/Platfrom (please complete the following information):
Logs (Error Logs)
2019-09-09 17:04:43.337 11366-11366/co.speakto.advisor E/ActivityThread: Activity co.speakto.advisor.Activities.ChatActivity has leaked IntentReceiver com.cometchat.pro.core.NetworkChangeReceiver@9c5b6d3 that was originally registered here. Are you missing a call to unregisterReceiver()?
android.app.IntentReceiverLeaked: Activity co.speakto.advisor.Activities.ChatActivity has leaked IntentReceiver com.cometchat.pro.core.NetworkChangeReceiver@9c5b6d3 that was originally registered here. Are you missing a call to unregisterReceiver()?
at android.app.LoadedApk$ReceiverDispatcher.(LoadedApk.java:1159)
at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:946)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1330)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1310)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1304)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:586)
at com.cometchat.pro.core.CometChat.(CometChat.java:437)
at com.cometchat.pro.core.CometChat.init(CometChat.java:406)
at co.speakto.advisor.Activities.ChatActivity.onCreate(ChatActivity.java:101)
at android.app.Activity.performCreate(Activity.java:6672)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1140)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2612)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2724)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1473)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6123)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
Describe the bug
While Sending a text message with messageType MESSAGE_TYPE_IMAGE
it shows: A file input is required for the message type image under category message instead of showing that text message requires MESSAGE_TYPE_TEXT
as messageType
To Reproduce
Steps to reproduce the behavior:
MESSAGE_TYPE_IMAGE
Expected behavior
Exception showing text message requires MESSAGE_TYPE_TEXT
as messageType under
category message
Actual behavior
A file input is required for the message type image under category message
Enviorment/Platfrom (please complete the following information):
Logs (Error Logs)
Just wondering what features of the CometChat SDK requires API 21 and if there are any plans on lowering it?
Since our app is currently only requiring 16, it's a somewhat big jump for us to even be able to use CometChat. As of now, seems like about 10,7% of Android users are on <21 and 6.9% are on 19, so being able to lower to at least 19 would be great.
Describe the bug
Custom message on delete returns null
To Reproduce
send this:
val customMessage = CustomMessage(convId, receiverType, “Location”, customData)
delete it
and this method below in receiver’s side will get null message
CometChat.addMessageListener(“message_listener”, object : CometChat.MessageListener() {
override fun onMessageDeleted(message: BaseMessage?) {
Timber.e(“Message Deleted ${message}”) //the message is null
}
})
Expected behavior
onMessageDeleted() callback must have the deleted message.
Actual behavior
onMessageDeleted() has null for the message parameter
When the metadata is set in call object it returns a string instead of JSONObject in response. which throws the exception cannot convert String to JSON Object as SDK end.
intiClickAction from settings activity to profile activity is crashing the app
To Reproduce
I'm enclosing errors in a text file
errors.txt
Expected behavior: Should open ProfileActivity from SettingsActivity
App should open profile information from support action bar by binding toolbar on it.
App is getting force stopped
When i try to open Profile activity from settings activity app is either getting restarted or crashed.
Screenshots (optional)
I'm enclosing screenshots here.
Enviorment/Platfrom (please complete the following information):
Files (Optional)
build.gradle
(App Level)
build.gradle.app.txt
build.gradle
(Project Level)
build.gradle.project.txt
Logs (Error Logs)
Error Log in Logcat
errors.txt
Debug Log
debug.txt
Additional context
I'm enclosing my files here
SettingsActivityJava.txt
SettingsActivityXml.txt
ProfileActivity_xml.txt
ProfileActivityJava.txt
AndroidManifestXml.txt
Describe the bug
Validation for the required parameter in constructors is not working
To Reproduce
Steps to reproduce the behavior:
Pass Different parameters than required in the constructor
Expected behavior
Compile-time error or Warning for passing the Wrong Parameter in the constructor
Actual behavior
Error response in onError()
method
Enviorment/Platfrom (please complete the following information):
Logs (Error Logs)
Additional context
Constructor Created was
TextMessage textMessage=new TextMessage(UID,null,
CometChatConstants.CALL_TYPE_VIDEO,CometChatConstants.CATEGORY_MESSAGE);
Describe the bug
Currently, SDK is not supported for 64-bit Architecture and Google has made it compulsory for App to have 64-bit compatibility to publish app on PlayStore.
I try to call, user at the other end accept it n then the call ends automatically n im recieving this error in log
: [features/base/lib-jitsi-meet] Failed to load config from https://rtc-us.cometchat.io/config.js?room=1589886198a68b1c84efd5aae25e13ba9148eed9186e6b510c Error(Error){“message”:“timeout”}
For more information please check:
https://forum.cometchat.com/t/audio-and-video-calling-issue/1390
Describe the bug
When connecting / login to cometchat
To Reproduce
com.cometchat.pro.core.XMPPConnectionService.subscribeToNode (XMPPConnectionService.java:441)
com.cometchat.pro.core.XMPPConnectionService.handlePresenceSubscriptions (XMPPConnectionService.java:404)
com.cometchat.pro.core.XMPPConnectionService.access$1200 (XMPPConnectionService.java:100)
com.cometchat.pro.core.XMPPConnectionService$8.run (XMPPConnectionService.java:332)
java.lang.Thread.run (Thread.java:762)
Expected behavior
cometchat will be connect / logged
Actual behavior
force close / crash
Enviorment/Platfrom (please complete the following information):
Android 9 (API 28)
Cometchat version is 2.0.0-beta4
Logs (Error Logs)
com.cometchat.pro.core.XMPPConnectionService.subscribeToNode (XMPPConnectionService.java:441)
com.cometchat.pro.core.XMPPConnectionService.handlePresenceSubscriptions (XMPPConnectionService.java:404)
com.cometchat.pro.core.XMPPConnectionService.access$1200 (XMPPConnectionService.java:100)
com.cometchat.pro.core.XMPPConnectionService$8.run (XMPPConnectionService.java:332)
java.lang.Thread.run (Thread.java:762)
Describe the bug
After connectivity loss, call view freezes for something like 10 seconds, and during this time if network appears the call is reconnected, but after this 10 seconds call view entirely disappears with no callback, and you can not reconnect to call anymore. Is there any workaround or fix for this problem?
Expected behavior
Call must reconnect again after connection re-established or show some error if call is terminated.
Actual behavior
Calling screen shows blank black screen after connection lost while call is running.
Enviorment/Platfrom (please complete the following information):
Describe the bug*
On Android, we get "System made Joe Doe admin" text
On iOS, we get "Joe Doe's scope changed from participant to participant" text
Expected behavior
Action message should be the same.
Actual behavior
getting different action message for the same action.
Hi
I'm getting this error
Entry name 'XPP3_1.1.4c_VERSION' collided
versions of gradle 6.5, and android_gradle_plugin 4.0.0
here is the output of gradlew app:dependencies
+--- com.cometchat:pro-android-chat-sdk:2.0.3
| +--- org.igniterealtime.smack:smack-android:4.1.0
| | +--- org.igniterealtime.smack:smack-resolver-minidns:4.1.0
| | | +--- de.measite.minidns:minidns:[0.1,0.2) -> 0.1.7
| | | +--- org.jxmpp:jxmpp-util-cache:0.4.2-beta1
| | | \--- org.igniterealtime.smack:smack-core:4.1.0
| | | +--- org.jxmpp:jxmpp-core:0.4.2-beta1
| | | | \--- org.jxmpp:jxmpp-util-cache:0.4.2-beta1
| | | \--- xpp3:xpp3:1.1.4c
...
xpp3:xpp3:{strictly 1.1.4c} -> 1.1.4c (c)
about xpp3
xpp3 defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar
SDK needs to add support for Message category custom
App crashes, crash log:
com.cometchat.pro.core.PingController.stopPing (PingController.java:3)
com.cometchat.pro.core.CometChat.loginFail (CometChat.java:1)
com.cometchat.pro.core.CometChat.login (CometChat.java:139)
utils.CometChatHelper.internalLogin (CometChatHelper.java:56)
utils.CometChatHelper.access$internalLogin (CometChatHelper.java:16)
utils.CometChatHelper$internalLogin$1.onError (CometChatHelper.java:64)
com.cometchat.pro.core.CometChat$9.run (CometChat.java:1)
Describe the bug
No Callbacks triggered due to network loss while call in progress
Hi, I implemented Caching Extension in Android and found some problems with CustomMessage.
When u send CustomMessage to me in “messagesRequest.fetchPrevious()” that u give me JSON like this:
CustomMessage{
subType=‘null’,
customData=null,
id=1204,
muid=‘null’,
sender=User{
uid=‘5d25c57f6bff1f68194bef43’,
name=‘Rene Voly’,
email=‘null’,
avatar=‘link_link_link’
width=1920’,
link=‘null’,
role=‘null’,
metadata=null,
credits=0,
status=‘available’,
statusMessage=‘null’,
lastActiveAt=1563008085,
hasBlockedMe=false,
isBlockedByMe=false
},
receiverUid=‘5d299b296bff1f7d1c40e544’,
type=‘custom’,
receiverType=‘group’,
category=‘custom’,
sentAt=1563008455,
deliveredAt=0,
readAt=0,
metadata={
“type”:“in_trouble.off”
}
}
but
when I insert this message to cache and try to restore it(when no internet connection) i get JSON like this:
TextMessage{
text=‘null’,
metadata={
“type”:“in_trouble.off”
},
id=1505,
muid=‘null’,
sender=User{
uid=‘5d1a14e26bff1f2bff794892’,
name=‘Stepan Revytskyi’,
email=‘null’,
avatar=‘link_link_link’
width=1920’,
link=‘null’,
role=‘null’,
metadata=null,
credits=0,
status=‘available’,
statusMessage=‘null’,
lastActiveAt=1563215143,
hasBlockedMe=false,
isBlockedByMe=false
},
receiverUid=‘5d2cc5bb6bff1f6acd137af2’,
type=‘custom’,
receiverType=‘group’,
category=‘custom’,
sentAt=1563215319,
deliveredAt=0,
readAt=0
}
I think it’s problem in your SKD, u doesn’t insert all fields in cache and that’s why system can’t cast JSON to CustomMessage.
Dear Sir,
I had made voice calling (Only audio calling) an Android app but I had faced a problem
Voice calling is only working on loudspeakers. I want audio calling without loudspeaker
Please send me the solution.
Thank you
Describe the bug
User's Last Active time is incorrect even after updating the user last Active time
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The submitted "lastActiveAt" of the certain user should be the latest one being passed on the sdk's method
CometChat.updateUser
Actual behavior
The response of the method requests always give incorect time.
In my case it was always in year 1970
Enviorment/Platfrom (please complete the following information):
Files (Optional)
build.gradle
(Project Level)Logs (Error Logs)
**Response Data**:
User{uid='kenadmin', name='ken admin', avatar='https://dev.lemi.travel/avatar/kenadmin?context=chat', link='null', role='default', metadata=null, status='offline', statusMessage='null', lastActiveAt=1599662517, hasBlockedMe=false, blockedByMe=false}
**Submitted Data**:
User{uid='kenadmin', name='ken admin', avatar='https://dev.lemi.travel/avatar/kenadmin?context=chat', link='null', role='default', metadata=null, status='offline', statusMessage='null', lastActiveAt=1599662518083, hasBlockedMe=false, blockedByMe=false}
I have multiple sdk's which use the latest version of okio dependency. As cometchat-pro uses okio as a jar file there's no way I can exclude it. If you can please rev the okio version and release it, it would be very helpful
Duplicate class okio.AsyncTimeout found in modules okio-1.15.0.jar (com.cometchat:pro-android-chat-sdk:1.7.0) and okio-1.17.4.jar (com.squareup.okio:okio:1.17.4)
E/unknown:ViewManager: Error while updating prop source
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodError: No virtual method diskCacheStrategy(Lcom/bumptech/glide/load/engine/DiskCacheStrategy;)Lcom/bumptech/glide/request/RequestOptions; in class Lcom/bumptech/glide/request/RequestOptions; or its super classes (declaration of ‘com.bumptech.glide.request.RequestOptions’ appears in /data/app/icode.com.doctory-nM3hIEL9oDSrgRRU5_V31g==/base.apk)
at com.dylanvann.fastimage.FastImageViewConverter.getOptions
Describe the bug
our client from Country of Oman cannot start chat from Android only, iOS is working fine
we tried multiple WIFI networks
we've tried the same app the same phones from another country and it works fine
We've tried your sample and the same issue is happening.
here is the log
cometchat+(1).txt
here is a video
https://user-images.githubusercontent.com/25287348/124379813-d5480d80-dcc1-11eb-8e11-6ce9dd567009.mp4
Title explains it
Trying to run this project on android studio and receiving the below error:
Could not GET 'https://dl.bintray.com/cometchat/pro/com/cometchat/pro-android-chat-sdk/2.2.1/pro-android-chat-sdk-2.2.1.pom'. Received status code 403 from server: Forbidden
Could not HEAD 'https://dl.bintray.com/cometchat/pro/com/cometchat/pro-android-calls-sdk/2.1.1/pro-android-calls-sdk-2.1.1.pom'. Received status code 403 from server: Forbidden
Build.gradle:
dependencies {
implementation 'com.cometchat:pro-android-chat-sdk:2.2.1'
implementation 'com.cometchat:pro-android-calls-sdk:2.1.1'
}
Describe the bug
Audio Call can be switch to Video call through Video call button on screen.
Expected behavior
Video call button must be disabled, so Audio call cannot be switched to Video Call
Actual behavior
Audio call can be switched to Video call.
Enviorment/Platfrom (please complete the following information):
Connected audio call always stay with mute state. Not able to unmute for conversation.
Dependency used:
implementation ('com.cometchat:pro-android-chat-sdk:1.7.+') {
configurations {
compile.exclude module: 'gson'
compile.exclude module: 'okhttp'
compile.exclude module: 'okio'
}
}
Describe the bug
While sending a text message MUID
is been set but in onSucess()
MUID
is null in the message object
To Reproduce
Steps to reproduce the behavior:
send a text message with and set MUID in the message object
Expected behavior
Set value of MUID should be return in onSucess()
response
Actual behavior
null value of MUID in onSucess()
Enviorment/Platfrom (please complete the following information):
Logs (Error Logs)
Additional context
The message gets successfully sent and the MUID field returned is null
Describe the issue
Features Added and Improvement
Describe the bug
First of all, I'm not using comet-chat UI Kit, instead, I'm using comet-chat SDK with my own UI... Everything was working fine till the last 2 days.. but today (after the weekend) when I'm sending any message or receiving any calls etc, my application is being crashed with an error
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equalsIgnoreCase(java.lang.String)' on a null object reference
at com.cometchat.pro.core.CometChat$1$1.run(CometChat.java:95)
at android.os.Handler.handleCallback(Handler.java:899)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:238)
at android.app.ActivityThread.main(ActivityThread.java:7853)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:984)
As far as I debug, it is being crash due to 'null' value of 'messageReceipt.getReceiptType()'.
Please fix that issue ASAP.
Thanks.
Dear Sir,
I had made voice calling an Android app but I had faced a problem
When I make a call using a WiFi connection, applications are disconnected and automatically restarted. But when I used cellular data, my app was working fine.
Please send me the solution.
Thank you
Describe the bug
When connecting / login to cometchat
To Reproduce
com.cometchat.pro.core.XMPPConnectionService.handlePresenceSubscriptions (XMPPConnectionService.java:405)
com.cometchat.pro.core.XMPPConnectionService.access$1200 (XMPPConnectionService.java:100)
com.cometchat.pro.core.XMPPConnectionService$8.run (XMPPConnectionService.java:332)
java.lang.Thread.run (Thread.java:764)
Expected behavior
cometchat will be connect / logged
Actual behavior
force close / crash
Enviorment/Platfrom (please complete the following information):
Logs (Error Logs)
com.cometchat.pro.core.XMPPConnectionService.handlePresenceSubscriptions (XMPPConnectionService.java:405)
com.cometchat.pro.core.XMPPConnectionService.access$1200 (XMPPConnectionService.java:100)
com.cometchat.pro.core.XMPPConnectionService$8.run (XMPPConnectionService.java:332)
java.lang.Thread.run (Thread.java:764)
Describe the bug
When on a one to one call and a group call comes in the background
To Reproduce
Steps to reproduce the behavior:
CALL_STATUS_BUSY
from the onIncomingCallReceived() callback of the CallListenerExpected behavior
Group Call must be rejected. And one-to-one call should continue and should be ended correctly
Actual behavior
No end call events received when the one-to-one call is ended
I am using following comet chat library
implementation 'com.cometchat:pro-android-chat-sdk:1.5.+'
I am getting following error while running the application.
error: cannot access zza
class file for com.google.android.gms.common.internal.safeparcel.zza not found
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.