-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typing in chat freezes the app on Android #1810
Comments
Is there a limit in SQLite or in Android ? |
limit for? |
@billnbell what props are you passing the Channel component? Could you show me some code? |
I am not having any issues @gregssdev is |
@gregssdev for you |
I used these props
|
It's hard to point out without looking at the implementation of these props. But I can give few tips:
|
Maybe related to this facebook/react-native#35350? |
hmm interesting.... |
Does it happen for you guys on any android version? For us this issue only happens on android 13 (aka. API 33) |
Any updates on it? We're also struggling with freezing chat only on Android. |
@atsss @gregssdev I guess both of you are running android 13 (aka. API 33) ? |
Yes. It's happening on android 13. |
Same. We only experience this on 33 aka Pixel devices! |
Hey guys, this is a known RN/Android issue, and we're still awaiting it. |
Hi! Are there any updates on resolving this issue? |
Is there any sort of workaround for this? Chat is basically unusable for our impacted users on Android. |
What version are you using ? |
What I meant by limit is: 200 words being stored in SQLite might hit a 64K limit. Also there might be a limit in the REST call back to Getstream. Did you try this on IOS? Does it do the same thing? Also, can you set an input limit to like like 2K or something? |
Can someone submit a repo that is small so we can see it? Something like an app.tsx, and Chat ? |
We are facing the same issue. We have a simple chat screen using stream. Something like this: <StreamChannel
{...props}
initialValue={messages[channelId]}
onChangeText={debounce((value) => {
updateCache(channelId, value)
}, 300)}
>
<MessageList
{...listProps}
/>
<MessageInput />
<MessageActions {...actionProps} />
</StreamChannel> After interacting a bit with the message input the screen completely freezes. This is fixed by adding <StreamChannel
{...props}
initialValue={messages[channelId]}
onChangeText={debounce((value) => {
updateCache(channelId, value)
}, 300)}
>
<MessageList
inverted={false}
{...listProps}
/>
<MessageInput />
<MessageActions {...actionProps} />
</StreamChannel> |
The fastest way to achieve that is with the following command to create a new RN project with Stream chat in it:
More information about how to run the template after initialization can be found here |
Do you have any plans to fix the problem like that temporarily? Because our android customer is having difficulties with typing and it's so critical for chatting. |
This is not a proper solution, but you can think about the following fix until RN introduces an official fix One BIG drawback is that bi-directional lazy loading will not work anymore. We keep on monitoring this issue here and, will think along when a proper solution will be introduced. |
@vanGalilea is there any workaround that can happen in the stream-chat-react-native library so that we're not having to patch React Native and create custom components? We're paying a large amount of money for Stream every month, and our Android users are having a bad experience due to this bug. I realize the root issue is outside of this project; however, that doesn't change the fact that we're paying for a broken product right now. |
So excited to consume that workaround @santhoshvai, thanks! |
Hey everyone, We have released a workaround in |
@nathancoleman 😊 Please try the workaround and report if it works please. We have also contacted other customers to try it out and we intend to ship this to stable asap. |
@santhoshvai I've confirmed that I can no longer reproduce the issue on my Pixel 4a with the beta release installed 💯 |
Describe the bug
On Android when you type some message, a long message it will freeze the app at a random interval of time
Dev environment info (please complete/provide the following information):
To Reproduce
Steps to reproduce the behavior:
Expected behavior
App should run smoothly
The text was updated successfully, but these errors were encountered: