this plugin works well on Android but when I tried to implement it on iOS, it didn't work. No error report on the console but apparently the socket is not connected because I put console.log() inside the on 'connect' callback and nothing prints out. I also put console.log() inside the new message listener and when I send a new message I also get nothing on the console. Anyone else ran into this issue and solved this? I really need help. thanks
it turned out the issue appeared because my socket URL is not secure (http instead of https). Setting app transport system with allow arbitrary loads solved this.
this plugin works well on Android but when I tried to implement it on iOS, it didn't work. No error report on the console but apparently the socket is not connected because I put console.log() inside the on 'connect' callback and nothing prints out. I also put console.log() inside the new message listener and when I send a new message I also get nothing on the console. Anyone else ran into this issue and solved this? I really need help. thanks