Hey, we are using React-Native-SDK in our app. While the app goes to the background we got the below error and real-time stopped working but specifically in Android.
[FROM SERVER] - [event: error] - arguments: {“type”:“TransportError”,“description”:{“isTrusted”:false,“message”:“Code 1005 is reserved and may not be used.”}}
Any idea about the error please and If the web socket is not stable then how can we fix the issue?
You can see how it is done in our sdk which is open source. If you try connecting directly, we would not be able to provide support and answer questions about that integration
@mark-piller I have been waiting for the fix where as soon as the application comes to background, I got the above reported transport error, If possible can you let me know how I can bypass this error so that listeners should work fine
@mark-piller I am trying to find a workaround because our real time update stopped working as soon as application goes to background. Is there any way I can change the transport to WEBSOCKET, I have seen on many places, we will get the transport error only when the transport is set to POLLING.
Yeah I have added those listeners, but that transport error is not getting logged in any of that event.
Let’s assume, websocket does not work in the background, how we can perform the updates in the background If something has been updated, any thoughts on this ?
@mark-piller Imagine, there are 100 things in an app, and whenever user will open the app which was in background, is it okay to fetch the data for those 100 things or, we should update the app when the app is in the background ?