Closed Aks-B closed 2 years ago
When i run application on IoS platform it is working fine but not working in android platform.
Please help
below is my code:
try { PusherOptions options = PusherOptions( host: "tinyspines.com", port: "6001", encrypted: true);
FlutterPusher pusher = FlutterPusher("local", options, enableLogging: true); Echo echo = new Echo({ 'broadcaster': "pusher", 'client': pusher, }); try { echo.channel("channel").listen("Hello", (Map<String, dynamic> map) async { print(map.toString()); }); }catch(ex){ print(ex.toString()); } } catch (ex) { showSnackBar(context, ex.toString()); }
The above is working fine on IOS device
If you run these on android and you applied https on api then you have to add ssl certificate into your project..
for more information please visit https://developer.android.com/training/articles/security-ssl
When i run application on IoS platform it is working fine but not working in android platform.
Please help
below is my code:
try { PusherOptions options = PusherOptions( host: "tinyspines.com", port: "6001", encrypted: true);
The above is working fine on IOS device