I upgraded SignalR version to 2.0.1 and everything magically worked :) I recommend all to do so
SignalR JavaScript Client on Mobile Devices
-
01-10-2022 - |
Pregunta
As described in documentation SignalR the following transport mechanisms:
- WebSocketsl;
- Server Sent Events;
- ForeverFrame;
- LongPolling
and it will degrade automatically to the best option supported by the client.
My problems are:
SignalR javascript client (tested to work in all modern browsers on a PC) doesn't work on mobile devices until I specify explicitly to use LongPolling as a transport by writing this:
$.connection.hub.start({ transport: 'longPolling' });
Second problem is that, even if I specify the LongPolling option, it still doesn't work in native Android browsers.
Has anyone encountered or solved these problems?
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow