Comments (13)
Hi @SimplisticApps,
The audio messages shouldn't make the app go more slowly as it is just an image message with addition information available. The message is sent as normal and when the user clicks play the audio URL is downloaded and played.
The cells also shouldn't be loaded if they are not on screen meaning that, at any one time, only 3-6 messages should be being loaded.
It would be good to understand how your app is fitting together. Is your app based around sending large amounts of audio messages or do users send them as they would with a normal chat app.
Simon
from chat-sdk-android.
The app is simply a normal messaging app but instead of just text messages with an attachment, the user can only send audio messages or audio with text attached, which means the whole conversation list will consist of audio messages with or without text but because of that, the whole list is really slow after sending about 5 audio messages
from chat-sdk-android.
Okay so i have had an extra look and it looks like the audio file gets uploaded to the server and the cache directory and when you play the message, it will read from the cache rather than server but because every audio message is uploaded to cache and read from cache it makes the entire message list extremely slow which is a massive problem as my app is all about sending audio messages! I tried also enabling SaveAudioToDir to see if that helped but it doesn't so what i need to know is how to ONLY upload and read the url of the sent audio file to the server or at the very least to temporally upload the message to cache then delete it afterwards so it can read from the server!
Seems confusing so hope you understand what i mean!
Thanks
from chat-sdk-android.
Hey!
I have a bit of time right now, and the problem seems clear. I'll see if I can find a quick modification to dump the old audio messages from the cache.
Is this issue only found in the Android SDK?
-- Kyle
from chat-sdk-android.
Other than features, there isn't any other issues but the same does go with sending images and videos but again that is only an issue when loads are sent in one conversation
from chat-sdk-android.
@kykrueger Had any luck yet?
from chat-sdk-android.
Unfortunately not, I am having some trouble with my emulator at the moment. Might need to take a better look this weekend. However, if the performance issue is across both SDKs, im just going to tag @bensmiley and @simonsmiley64 to see if I could get their opinions if we could make this change on both SDKs.
from chat-sdk-android.
Okay, fair enough! I'll keep looking myself to see if i come up with anything.
Hopefully a solution will be found and as always thanks for the help
from chat-sdk-android.
Right i don't know if this will of any use but i looked at the logcat while i was running my app through my phone and i had a lot of this: I/Choreographer: Skipped 86 frames! The application may be doing too much work on its main thread.
coming up, it's not always 86 frames but i do think it could be partly why the app runs so slowly! I've only noticed it come up on the conversation activity
from chat-sdk-android.
Right I'm confident that i have successfully fixed the issue. It looks like MediaPlayer was slowing it right down! So instead of playing the audio internally, it now opens a default player and the list is not only smoother but the messages send in under a second whereas before, it would take nearly a minute to send.
The reason why i think it was all to do with the MediaPlayer is because when you watch the LogCat when running the app, it is doing way to much and takes up a lot of resources!
from chat-sdk-android.
Would it be possible for you to send me code changes you made? [email protected] Then we could improve the main codebase. If you do, we can give you a gift voucher to set against further add-ons.
from chat-sdk-android.
Done, it's been sent with the subject "ChatBubbleAudioView.java changes"
from chat-sdk-android.
Fixes on #46
from chat-sdk-android.
Related Issues (20)
- Notifications crash's app if the app was closed
- java.lang.RuntimeException: Unable to start activity ComponentInfo{com.trackofield.tracker/sdk.chat.ui.activities.PostRegistrationActivity}: android.view.InflateException: Binary XML file line #22 in com.trackofield.tracker:layout/activity_post_registration: Binary XML file line #22 in com.trackofield.tracker:layout/activity_post_registration: Error inflating class HOT 1
- java.lang.RuntimeException: Unable to start activity ComponentInfo{com.trackofield.tracker/sdk.chat.ui.activities.ChatActivityWrapper}: java.lang.NullPointerException: Attempt to invoke virtual method 'void sdk.chat.ui.views.ChatView.setDelegate(sdk.chat.ui.views.ChatView$Delegate)' on a null object reference HOT 2
- user cant send msg and hide input msg view HOT 1
- ChatSDK UI Customization not working
- Unable to load library: webviewchromium HOT 2
- Unable to login with chat sdk HOT 6
- How to integrate all public group search with group name HOT 1
- Canβt able to attach Photos from any folder except All Media after changing the AlbumSpinner from the toolbar HOT 1
- Big groupchats/chat rooms/channels support (around 5k participants)
- Push notifications doesn't work for app from play store
- looks like a bug in android 12: bottom messaging box does not appear when exiting a chat room and entering again
- Image Picker is not working in Andorid 13 HOT 1
- Android : Different firebase account need to be used. (Separate account for firebase for ChatSdk) HOT 1
- Can't Release Signed Bundle or Apk!
- Android: notification is not come (+ crash happened) when app process is killed HOT 2
- Android app crash HOT 6
- Crash when add threadFragment to compose android view
- Gradle could not fetch 5.5.3 and 5.5.6 version of library HOT 1
- Error when compiling when updating the android studio to the giraffe version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chat-sdk-android.