GithubHelp home page GithubHelp logo

chat-sdk / chat-sdk-android Goto Github PK

View Code? Open in Web Editor NEW
1.6K 89.0 613.0 307.53 MB

Chat SDK Android - Open Source Mobile Messenger

Home Page: https://chatsdk.co

License: Other

Java 90.49% Kotlin 9.44% Shell 0.07%
chat-sdk firebase messaging instant-messaging messenger messenger-client sdk android android-sdk xmpp xmpp-client

chat-sdk-android's Introduction

Chat SDK for Android v5

Open Source Messaging framework for Android

Main Image

Chat SDK is a fully featured open source instant messaging framework for Android. Chat SDK is fully featured, scalable and flexible and follows the following key principles:

  • Free.
  • Open Source.
  • Full control of the data. You have full and exclusive access to the user's chat data
  • Quick integration. Chat SDK is fully featured out of the box
  • Scalable. Supports millons of daily users [1, 2]
  • Backend agnostic. Supports Firebase and XMPP (ejabberd, Prosody, MongooseIM, Tigase, OpenFire)

Technical details

Please bear in mind that this version is a major update. As a result we are making new releases every few days to fix bugs and crashes. If you see an issue, please report it on the Github bug tracker and we will fix it.

Features

  • Powered by Firebase Firestore, Realtime database or XMPP
  • Private and group messages ⇘GIF
  • Public chat rooms
  • Username / password, Social, Anonymous and custom login
  • Phone number authentication
  • Push notifications (using FCM)
  • Text, Image ⇘GIF and Location ⇘GIF messages
  • Forward, Reply ⇘GIF, Copy and Delete ⇘GIF messages
  • Tabbar ⇘GIF or Drawer ⇘GIF layout
  • User Profiles ⇘GIF
  • User Search ⇘GIF
  • Contacts ⇘GIF
  • Add contact by QR code ⇘GIF
  • Firebase UI ⇘GIF
  • iOS Version

Pro Features

If you are an open source project using GPLv3 you can use all the features with that license.

For commercial projects, sponsor us on either Github sponsors or Paetron and get these features. For full details visit our Modules page.

When you support us on Patreon, you get: extra modules, code updates, support as well as special access to the Discord Server.

  • Typing indicator ⇘GIF
  • Read receipts
  • Last online indicator
  • Audio messages ⇘GIF
  • Video messages ⇘GIF
  • Sticker messages ⇘GIF
  • User blocking ⇘GIF
  • File Messages ⇘GIF
  • End-to-end encryption
  • Contact book integration ⇘GIF
  • Location based chat ⇘GIF
  • XMPP Server Support
    • ejabberd
    • Prosody
    • OpenFire
    • Tigase
    • MongooseIM

Visit our Animated GIF Gallery to see all the features.

License

This project is covered by multiple different licenses. Use the flowchart to determine which license you can use.

Standard modules:

  • app
  • app-demo
  • app-firestream
  • chat-sdk-app-firebase
  • chat-sdk-app-firestream
  • chat-sdk-core
  • chat-sdk-core-ui
  • chat-sdk-demo
  • chat-sdk-firebase-adapter
  • chat-sdk-firebase-push
  • chat-sdk-firebase-upload
  • chat-sdk-firestream-adapter
  • chat-sdk-mod-auto
  • chat-sdk-mod-firebase-ui
  • chat-sdk-mod-image-editor
  • chat-sdk-mod-message-location
  • chat-sdk-mod-ui-extras
  • firestream
  • firestream-firestore
  • firestream-realtime
  • sdk-guru-common
  • sdk-guru-firestore
  • sdk-guru-realtime
  • vendor-chatkit

License:

Monthly Active Users
Less than 1 million Apache 2.0
More than 1 million GPLv3 or Commercial License

Pro modules:

  • app-xmpp
  • chat-sdk-app-xmpp
  • chat-sdk-pro-contact-book
  • chat-sdk-pro-encryption
  • chat-sdk-pro-firebase-blocking
  • chat-sdk-pro-firebase-last-online
  • chat-sdk-pro-firebase-nearby-users
  • chat-sdk-pro-firebase-read-receipts
  • chat-sdk-pro-firebase-typing-indicator
  • chat-sdk-pro-firestream-blocking
  • chat-sdk-pro-firestream-read-receipts
  • chat-sdk-pro-firestream-typing-indicator
  • chat-sdk-pro-message-audio
  • chat-sdk-pro-message-file
  • chat-sdk-pro-message-sticker
  • chat-sdk-pro-message-video
  • chat-sdk-pro-xmpp-adapter
  • chat-sdk-pro-xmpp-omemo
  • chat-sdk-pro-xmpp-read-receipts

License:

Monthly Active Users
Any GPLv3 or Commercial License

Commercial Licensing

For commercial licensing, you have several options:

  1. Pay monthly: Patreon or Github Sponsors
  2. Buy a one-off license
  3. If your project has over 1m MAU or XMPP contact [[email protected]](mailto: [email protected])

About Us

Learn about the history of Chat SDK and our future plans in this post.

Scalability and Cost

People always ask about how much Chat SDK costs to run. And will it scale to millions of users? So I wrote an article talking about just that.

Library Size

The Chat SDK library with ALL modules is around 20mb

Community

You can also help us by:

  • Providing feedback and feature requests
  • Reporting bugs
  • Fixing bugs
  • Writing documentation

Email us at: [email protected]

We also offer development services we are a team of full stack developers who are Firebase experts. For more information check out our consulting site.

Firestream - A light-weight messaging library for Firebase

If you are looking for something that is more-light weight than Chat SDK, we also have a library which only provides instant messaging functionality.

  1. 1-to-1 Messaging
  2. Group chat, roles, moderation
  3. Android, iOS, Web and Node.js
  4. Fully customisable messages
  5. Typing Indicator
  6. Delivery receipts
  7. User blocking
  8. Presence
  9. Message history (optional)
  10. Firestore or Realtime database

You can check out the project: Firestream on Github.

Chat SDK Firebase Documentation

Quick Start

Video Tutorial

Bear in mind that the video is not updated frequently. Please cross reference with with the text based instructions for the latest gradle dependencies.

Integration

  1. Add the Chat SDK to your project
  2. Firebase Setup
  3. Chat SDK Initialization
  4. Set the Chat SDK Theme
  5. Enable Location Messages
  6. Display the login screen
  7. Add module dependencies
  8. Module Configuration
  9. Proguard
  10. Push Notifications, Security Rules and Storage

Customization

  1. Override Activity or Fragment
  2. Theme Chat SDK
  3. Customize the Icons
  4. Customize the Tabs
  5. Add a Chat Option
  6. Custom Message Types
  7. Handling Events
  8. Custom Push Handling
  9. Synchronize user profiles with your app
  10. Custom File Upload Handler
  11. Enable token authentication

Extras

  1. Example Firebase Schema

Migrating from v4

Recommended background

Setup Service

We provide extensive documentation on Github but if you’re a non-technical user or want to save yourself some work you can take advantage of our setup and integration service.

chat-sdk-android's People

Contributors

alexfdz avatar asvino avatar bensmiley avatar erkberg avatar ezet avatar ferdzz avatar himanshubhaisare avatar itzikbraun avatar kykrueger avatar lluisfelip avatar mithrandir21 avatar pepebecker avatar shahawi avatar simonsmiley64 avatar thecmart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chat-sdk-android's Issues

Error in Creating network adapter @ documentation

BFirebaseNetworkAdapter adapter = new BFirebaseNetworkAdapter(getApplicationContext()); // Create new network adapter is getting error

    BChatcatNetworkAdapter adapter = new BChatcatNetworkAdapter(getApplicationContext());

// Create new network adapter

Backendless Exception on device

This exception occurs occasionally when I run the Chat App. It seems the Backendless has failed to register the device and is throwing an error. How can I resolve this, or at least catch this exception so that it won't crash the app entirely?

E/AndroidRuntime: FATAL EXCEPTION: main Process: com.braunster.chatsdk, PID: 15600 java.lang.RuntimeException: Could not register device on Backendless server: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Can't call rollback when autocommit=true at com.backendless.push.BackendlessBroadcastReceiver.onError(BackendlessBroadcastReceiver.java:148) at com.backendless.push.BackendlessBroadcastReceiver$1.handleFault(BackendlessBroadcastReceiver.java:310) at com.backendless.Messaging$2.handleFault(Messaging.java:247) at com.backendless.async.message.AsyncMessage$FaultHandler.handle(AsyncMessage.java:83) at com.backendless.async.message.AsyncMessage.handleCallback(AsyncMessage.java:41) at com.backendless.core.AndroidCarrier$1.handleMessage(AndroidCarrier.java:37) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6119) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

This problem has happened to others: http://support.backendless.com/topic/android-push-registration-crashes-app

How to create custom module.

Hi,
First thank for very nice chat sdk product. I can see many modules at http://chatsdk.co/modules-2/, but now I want to write own module, so how can I start? I can't find any documents about how to write custom module for ChatSDK. (both Android and IOS)

Thanks.

Deleting a contact

I did ask this on my previous issue but got no reply so if someone can close that issue and reply to this one then that would be great!

Also i need to know how to delete a contact from the list because everything i have tried so far hasn't worked and it's beginning to get rather frustrating now especially when i need this app released asap, so any help would be great right now!

Thanks again!

Sending two image messages quickly causes crash

The SuperToast service is crashing the app if two image messages are sent quickly.
The crash happens in ChatSDKUiHelper.showProgressCard(String text) at the bolded line shown below.

    public void showProgressCard(String text){

        if (colleted())
            return;

        if (context.get() instanceof Activity) {

            initCardToast();

            View decorView = ((Activity) context.get()).getWindow().getDecorView().findViewById(android.R.id.content);
            ViewGroup viewGroup = superCardToastProgress.getViewGroup();

            if (viewGroup!=null && superCardToastProgress.getView()!= null && viewGroup.findViewById(superCardToastProgress.getView().getId()) != null)
                viewGroup.removeView(superCardToastProgress.getView());

            decorView.findViewById(R.id.card_container).bringToFront();

            superCardToastProgress.setText(text);

            if (!superCardToastProgress.isShowing())
                superCardToastProgress.show(); 

        }
    }

The stack trace is the following

                                                                                  --------- beginning of crash
03-24 17:51:56.147 12215-12215/com.braunster.androidchatsdk.app E/AndroidRuntime: FATAL EXCEPTION: main
                                                                                  Process: com.braunster.androidchatsdk.app, PID: 12215
                                                                                  java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=6809, result=-1, data=Intent { (has extras) }} to activity {com.braunster.androidchatsdk.app/com.braunster.chatsdk.activities.ChatSDKChatActivity}: java.lang.IllegalArgumentException: Cannot add a null child view to a ViewGroup
                                                                                      at android.app.ActivityThread.deliverResults(ActivityThread.java:4089)
                                                                                      at android.app.ActivityThread.handleSendResult(ActivityThread.java:4132)
                                                                                      at android.app.ActivityThread.-wrap20(ActivityThread.java)
                                                                                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1533)
                                                                                      at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                                      at android.os.Looper.loop(Looper.java:154)
                                                                                      at android.app.ActivityThread.main(ActivityThread.java:6119)
                                                                                      at java.lang.reflect.Method.invoke(Native Method)
                                                                                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
                                                                                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
                                                                                   Caused by: java.lang.IllegalArgumentException: Cannot add a null child view to a ViewGroup
                                                                                      at android.view.ViewGroup.addView(ViewGroup.java:4189)
                                                                                      at android.view.ViewGroup.addView(ViewGroup.java:4171)
                                                                                      at com.github.johnpersano.supertoasts.SuperCardToast.show(SuperCardToast.java:348)
                                                                                      at com.braunster.chatsdk.Utils.helper.ChatSDKUiHelper.showProgressCard(ChatSDKUiHelper.java:388)
                                                                                      at com.braunster.chatsdk.Utils.helper.ChatSDKChatHelper.sendingMessageToast(ChatSDKChatHelper.java:486)
                                                                                      at com.braunster.chatsdk.Utils.helper.ChatSDKChatHelper.sendImageMessage(ChatSDKChatHelper.java:641)
                                                                                      at com.braunster.chatsdk.Utils.helper.ChatSDKChatHelper.processCroppedPhoto(ChatSDKChatHelper.java:420)
                                                                                      at com.braunster.chatsdk.Utils.helper.ChatSDKChatHelper.handleResult(ChatSDKChatHelper.java:373)
                                                                                      at com.braunster.chatsdk.activities.abstracted.ChatSDKAbstractChatActivity.onActivityResult(ChatSDKAbstractChatActivity.java:566)
                                                                                      at android.app.Activity.dispatchActivityResult(Activity.java:6932)
                                                                                      at android.app.ActivityThread.deliverResults(ActivityThread.java:4085)
                                                                                      at android.app.ActivityThread.handleSendResult(ActivityThread.java:4132) 
                                                                                      at android.app.ActivityThread.-wrap20(ActivityThread.java) 
                                                                                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1533) 
                                                                                      at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                                                      at android.os.Looper.loop(Looper.java:154) 
                                                                                      at android.app.ActivityThread.main(ActivityThread.java:6119) 
                                                                                      at java.lang.reflect.Method.invoke(Native Method) 
                                                                                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) 
                                                                                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) 

The toast should not be launching if it is already displayed, and I need to check how this problem is occurring despite us checking if the toast is filled or not.

How to add Modules?

How to access below Modules? Is it below module possible with fire base?

Typing indicator
Read receipts
Location based chat
Audio messages
Video messages
Push notifications

Uploading chat apk to Google play

Hello, i've made my chat apk, signed it and all but when i put the app on google play it says i violate the term of policy because of WebViewClient.onReceivedSslError and sais vurnable categories com.backendless.SocialAsyncCallback$1 :/ Hope you help :) Tnx for the nice sdk btw :D

Cross Platform Messaging not Working Properly (iOS-Android)

I implemented Chat Sdk in my ios App..I really Appriciate your work,But i am having problem with cross platform Messaging,Push Notification is not working,And received messages are blank..please fix that issue.Need Stable Version for Android..

Adding ChatSDK to an existing project

Hello,

I am trying to add ChatSDK to my existing project. It gets added but now how to access particular activities like signup, login, chat etc. on particular click or event.

Please help me.

Everythings setup but it's crashing on start?

Every time i try to run the app i get this error: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.skintmedia.voice, PID: 15447 java.lang.RuntimeException: Unable to resume activity {com.skintmedia.voice/com.braunster.chatsdk.activities.ChatSDKLoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.facebook.UiLifecycleHelper.onResume()' on a null object reference at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3121) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3152) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2499) at android.app.ActivityThread.access$900(ActivityThread.java:157) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1356) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5551) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.facebook.UiLifecycleHelper.onResume()' on a null object reference at com.braunster.chatsdk.activities.ChatSDKBaseActivity.onResume(ChatSDKBaseActivity.java:182) at com.braunster.chatsdk.activities.abstracted.ChatSDKAbstractLoginActivity.onResume(ChatSDKAbstractLoginActivity.java:63) at com.braunster.chatsdk.activities.ChatSDKLoginActivity.onResume(ChatSDKLoginActivity.java:107) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1259) at android.app.Activity.performResume(Activity.java:6347) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3110) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3152)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2499)  at android.app.ActivityThread.access$900(ActivityThread.java:157)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1356)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:148)  at android.app.ActivityThread.main(ActivityThread.java:5551)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620) 

But i don't know why?

Problem in release

Build Successfully but when i generate apk..shows error in Country code...values ..(missing translations)

Messages aren't being deleted when user deletes a thread. Bug?

So i don't know if this is intentional or if it's a bug but when you delete a thread, it keeps every message that was sent inside that thread?.

I only ask because to me, deleting a thread means deleting an entire conversation between 2 users which would mean the conversation being gone forever

Existing Project

Everything is fine without any error...but I have a Question , Should I have to add something in activity.main.xml of my existing project or only write in main.java...as in README There is code only for MainActivity.java, gradle,

Duplicate group chat

When I created a group chat using iOS and invited an Android user, the group appears twice.

screenshot_20170208-180007

screen shot 2017-02-08 at 13 01 37

Re-download dependecies and sync project

whenever I load project in I got an error re-download dependencies and sync project again. Kindly tell me how to resolve this issue. I tried downloading gradle zip files but don't know where and how to place that files in project folder.

Crash on Samsung Galaxy S7 Edge - OS 6.0.1, API 23

Receiving crash after the app was built from the master branch running on Samsung Galaxy S7 Edge - OS 6.0.1, API 23

Steps to reproduce:

search for contact
add contact
start chat with contact
send message
receive crash

sometimes happens when sending 1 message after the other with 1 second delay - in direct conversations and also in chat rooms

02-27 15:42:58.123 18954-18954/com.braunster.androidchatsdk.app E/ClipboardServiceEx: clipEx is android.sec.clipboard.ClipboardExManager@d4756b4
02-27 15:42:58.123 18954-18954/com.braunster.androidchatsdk.app E/ClipboardServiceEx: clipEx has text data : false
02-27 15:42:58.123 18954-18954/com.braunster.androidchatsdk.app E/ClipboardServiceEx: clipEx is android.sec.clipboard.ClipboardExManager@d4756b4
02-27 15:42:58.123 18954-18954/com.braunster.androidchatsdk.app E/ClipboardServiceEx: clipEx has text data : false
02-27 15:42:58.133 18954-18954/com.braunster.androidchatsdk.app E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
02-27 15:42:58.133 18954-18954/com.braunster.androidchatsdk.app E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
02-27 15:42:58.143 18954-26285/com.braunster.androidchatsdk.app V/BMessageWrapper: deserialize, Value: {user-firebase-id=QNTiaO17O7TB6UkJ4c2Cq6H8jlJ3, date=1488228178977, type=0, payload=Hrllo}
02-27 15:42:58.173 18954-18954/com.braunster.androidchatsdk.app D/ChatSDKMessagesListAdapter: Checking if exist
02-27 15:42:58.213 18954-18954/com.braunster.androidchatsdk.app V/BMessageWrapper: push message, onDone
02-27 15:42:58.213 18954-18954/com.braunster.androidchatsdk.app V/BFirebaseNetworkAdapter: pushForMessage
02-27 15:42:58.233 18954-18954/com.braunster.androidchatsdk.app D/AndroidRuntime: Shutting down VM
02-27 15:42:58.233 18954-18954/com.braunster.androidchatsdk.app E/AndroidRuntime: FATAL EXCEPTION: main
                                                                                  Process: com.braunster.androidchatsdk.app, PID: 18954
                                                                                  java.lang.IllegalStateException: Deferred object already finished, cannot notify progress
                                                                                      at org.jdeferred.impl.DeferredObject.notify(DeferredObject.java:82)
                                                                                      at com.braunster.chatsdk.network.AbstractNetworkAdapter$1.run(AbstractNetworkAdapter.java:170)
                                                                                      at android.os.Handler.handleCallback(Handler.java:739)
                                                                                      at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                                      at android.os.Looper.loop(Looper.java:158)
                                                                                      at android.app.ActivityThread.main(ActivityThread.java:7229)
                                                                                      at java.lang.reflect.Method.invoke(Native Method)
                                                                                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
                                                                                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Unable to fetch image error

Hi,

Adding image second time to thread shows unable to fetch image toast message

Steps

Add one image to thread
Add another image to thread then the error will show up

Cannot send location

Hi there,
I'm not able to send location to other users. I saw the ChatSDKLocationActivity.java file. There were some codes which was deprecated. I tried it to do by myself but i'm not able to do.

App terminates after showing main screen.

Hi there,
I have followed all the steps correctly except facebook setup. I can register the user on my firebase account but after that the app gets terminate after showing the main layout screen. Please help me. I want to use this as my final year project(200 marks) :(

Where is saved chat rooms?

hey,

i have integrated chatsdk on my app but when i loggedin there is already chatrooms maded by other users appear in the thread list.

Please help how to remove these chat rooms and where is it saved?

thanks,
screenshot_1485539707

Package name

I can't understand this( make sure you set the pakagr name with.....com.braunster.androidchatsdk.firebaseplugin) where i use it ?? also i am configuring my Own app with my project name...can i edit it

Message box crashing?

Hello again,

When i first used and setup the audio module, everything worked as it should but after creating a new project and importing and setting everything up again, it has started to crash for some reason?

The log: 03-06 18:53:48.923 2011-2011/com.skintmedia.voice E/AndroidRuntime: FATAL EXCEPTION: main Process: com.skintmedia.voice, PID: 2011 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.skintmedia.voice/com.braunster.chatsdk.activities.ChatSDKLoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.braunster.chatsdk.network.AbstractNetworkAdapter.facebookEnabled()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2434) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494) at android.app.ActivityThread.access$900(ActivityThread.java:157) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1356) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5551) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.braunster.chatsdk.network.AbstractNetworkAdapter.facebookEnabled()' on a null object reference at com.braunster.chatsdk.activities.ChatSDKLoginActivity.onCreate(ChatSDKLoginActivity.java:44) at android.app.Activity.performCreate(Activity.java:6272) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494)  at android.app.ActivityThread.access$900(ActivityThread.java:157)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1356)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:148)  at android.app.ActivityThread.main(ActivityThread.java:5551)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620) 

Line 52: <com.braunster.chatsdk.view.ChatMessageBoxView android:layout_width="fill_parent" android:layout_height="wrap_content" 52>> android:id="@+id/chat_sdk_message_box" </com.braunster.chatsdk.view.ChatMessageBoxView>

Thanks

Integrating ChatSDK in an app where custom log in is already build

I am currently trying to integrate the ChatSDK in an app where I have already implemented Firebase, Facebook and I am getting a lot of errors if I try to remove the Facebook module. is there a way to skip the authetification part from the ChatSDK and use currently logged in users in my app?

Problem in studio

Error No resource found that matches given name (At value with value @string/facebook_id)

Build fails when trying to add to existing project

I am getting this error when trying to build: Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/android/volley/Request$Priority.class

Can you help please? Also I needed help about hoe to start chat activity in my existing project. My app already includes Fb and Google login feature

How do i delete an audio message after it's been sent?

Hello again,

My app sends audio only or audio with text but that's causes one massive problem and that is the message list becomes extremely slow! so i need to delete every audio message after the user and friend has played the message once or twice but the way the audio message is saved then sent is confusing me.

I have looked at the code which sends and saves the message but from what I've seen, i have no idea what the best way would be to delete the message?

Also i did pay for the audio module, so i haven't added audio message myself!

Oh and i feel like i have improved the way audio messages are recorded and sent because the standard way just wasn't the best as you could cancel the recording or anything like that so if any of the SDK devs want the code then let me know!

Thanks

cannot build the project

Error:(261, 57) error: cannot find symbol method isAnnotationPresent(Class)

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':facebook:compileReleaseJavaWithJavac'.

Compilation failed; see the compiler error output for details.

Audio message not compatible with Android?

So I've just spent over £80 for the Audio Message module but i can even use it with android despite saying i can? Is there something I'm missing or do you not actually support the module for android yet?

Chat app

Nice app ..but i don't want to import....i want to build whole app by myself. .......plxxx help me.....plxxx

User's not offline when app minimised

When a user closes the app they are set as offline in the database. This means push notifications will be sent to them.

With Android if the user minimises the app that user is still registered as online. This means they don't get sent push notifications and are marked as online in the app. How can we mark those users as offline when the app is minimised?

Search index not updated until user details modified

When a user registers for the first time, the search index isn't pushed - this means that they can't be found via search. It's only pushed when they update their profile details.

The search index should be updated every time the user logs in.

Fix slowdown with audio messages

Comments on lines: 49, 91, 158, 190, 222 and 362 of the New class.

Changes were also made to the layout of the bubble view! This will be needed in order for there to be no errors!

Lines 586 – 595 were also removed from ChatSDKMessagesListAdapter.java

Hopefully that’ll be all you need!

Audio Messages.zip

Any closer to deleting contacts?

I know i have been banging on about this a lot but i was wondering if we're any closer to achieving it?

This is what i know works, the deleteContact method, i know because when you delete the contact, it does indeed get removed BUT it won't be gone from the list and when you restart the app, it will crash, the app will also crash when you click the contact after deleting. I think that is because of what @kykrueger told me about.

Now, i remember @kykrueger saying that this is because the contact has an open thread so it will keep the name of user in the list but not as a contact but a name related to an open thread, i was also told that i would need to search any open threads and delete the user from said thread before deleting the contact BUT that is where I'm struggling because i don't think i am quite getting how to do that at all!

So if possible, i either need to know exactly how to search current threads and then delete them or like before, post the code that i am currently using and wait to see if any of you (when you have the time of course) can use to the code and tweak it to get it to work!

Ryan

App crashes when adding a user to chat? (Fixed - See solution)

Okay never mind, i know what was wrong! it looks like the ID of AUDIO_PICKER_ID was the same as ADD_USERS so it was trying to upload a file without being told!

So this is should be changed in the SDK to stop it happening again

I changed id of line: 78 from 103 to 120
Thanks

User details in group are not updated

If you create a group chat and add several users and then one of those users leaves, the group still displays as having all the original users.

This affects the thread name and thread details screens.

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.