Closed pognibene closed 1 year ago
The client is just Dart code, it doesn't know where it is running so there is no different set up for any specific platform. All I can suggest is you take this up with flutter IOS users and see if they know what the problem is, looks as though IOS may need more platform specific stuff setting than android.
Has this problem been solved? I also have this problem
Hello, Using mqtt_client with Flutter. On Android I use this code:
this works fine and I'm connected with a secure connection on port 8883.
On IOS, the very same code fails with the following error:
The mosquitto broker rejects the connection with an 'invalid protocol' error.
Any idea what's wrong here? Should I initialize the connection in a different way on IOS? Thank you!