I am developing a Xamarin Forms app for Android where in i need to receive events from server using Azure SignalR function. This is working fine in few phones, however on few I get strange errors.
- Redmi 4 running Android 7.1 I see that the connection is successful, it it does not receive any messages.
- Redmi 1s running Android 4.4 KitKat, it gets connected and I can receive messages, however soon it gets disconnected stating that
remote party closed the websocket connection without completing the close handshake
or30000 ms elapsed without receiving a message from server
BTW I have a background Service
where I am creating this SignalR Hub and connecting so that even if my app goes to sleep, I can still receive the server events.
it works fine on some of the other newer phones in my home. so my question is what is the best way to debug these kind of issues. I don't see any logs in the Device Log
that can help me understand what is going on.