Device heating and app freezing issue on iOS devices #4372
Unanswered
codeclouds-team
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi! Are you sure this is related to the library? Creating a WebSocket connection should not consume that much memory/CPU. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am developing an app that is built on using react-native 0.63 and facing a weird issue that when the app is running and socket connection is active it makes the device heat more than normal, and also if the app is opened from the background state the app scrolling works but other actions like navigation or swipe those become non-response and takes too much time to respond for a single action,
if we kill and restart the app then it works again but the same thing repeats again after keeping the app inactive for some time.
There is no error report too.
This is the socket manager class we have in our app
And I am calling this on index.js file of react-native (that is in the root of the project, and the first file which initializes on the app wake up) because I have calling feature in the app so to ensure that I get an active socket connection as soon as the app wakes up through the VOIP push notifications or firebase push notification
this is an example how I am calling it in index.js
and surprisingly on Android nothing similar is happening, all is working fine on android.
Please suggest a solution.
Beta Was this translation helpful? Give feedback.
All reactions