kakajansh / echo

Laravel Echo for your Flutter apps.
MIT License
108 stars 70 forks source link

Platform Issue #57

Closed Aks-B closed 2 years ago

Aks-B commented 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

Aks-B commented 2 years ago

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