naderio / nativescript-socket.io

Fully-featured Socket.IO client implementation for NativeScript
The Unlicense
48 stars 21 forks source link

not working on iOS #42

Closed hafizalfaza closed 6 years ago

hafizalfaza commented 6 years ago

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

hafizalfaza commented 6 years ago

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.