No audio if not on wifi

For some odd reason, my app does not create any sound if the phone is on data instead of using wifi. Has anyone had a similar issue?

I haven’t seen this behavior. It could bee related to ICE, have you made sure the ICE state is connected in that scenario?

I am using the same iceServers that I had used before, which were working perfectly fine. If this is not what you mean, could you explain further?

Are you using a TURN server or just STUN? Not using TURN means you may not get a connection in some networks.

I am using both TURN and STUN servers for the reason you have mentioned. Is there anything else I could try?

I found out that when I try to check connectivity status using events like “onicechange”, I don’t get anything if I use a device on LTE, not even a “failed” status

Then it looks like ICE is still in progress.

is this the correct format/syntax for iceServers?

const iceServers = [
      {
        username: 'testUserName',
        url: 'turn:sh-turn1.xirsys.com:80?transport=udp',
        credential: 'testCredentials'
      },
      {
        username: 'testUserName',
        url: 'turn:sh-turn1.xirsys.com:3478?transport=udp',
        credential: 'testCredentials'
      },
      {
        username: 'testUserName',
        url: 'turn:sh-turn1.xirsys.com:80?transport=tcp',
        credential: 'testCredentials'
      },
      {
        username: 'testUserName',
        url: 'turn:sh-turn1.xirsys.com:3478?transport=tcp',
        credential: 'testCredentials'
      },
      {
        username: 'testUserName',
        url: 'turns:sh-turn1.xirsys.com:443?transport=tcp',
        credential: 'testCredentials'
      },
      {
        username: 'testUserName',
        url: 'turns:sh-turn1.xirsys.com:5349?transport=tcp',
        credential: 'testCredentials'
      }
    ]