Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

laravel_echo 0.2.1 not working on android but working on web platform #10

Closed
amanc1361 opened this issue Sep 21, 2019 · 4 comments
Closed

Comments

@amanc1361
Copy link

amanc1361 commented Sep 21, 2019

this package can connect to server over HTTP but when using HTTPS only connect on web platform but not on mobile platform(android). please help

@ajaygosh102
Copy link

Having the same question. can't connect through HTTPS from mobile

@harisvm
Copy link

harisvm commented Sep 11, 2020

Https requests from mobile not connecting to server , this is a serious issue need to be addressed if possible @kakajansh

@ajaygosh102
Copy link

ajaygosh102 commented Sep 11, 2020

Having the same question. can't connect through HTTPS from mobile

fix is here.
rikulo/socket.io-client-dart#84 (comment)

class MyHttpOverrides extends HttpOverrides {
  @override
  HttpClient createHttpClient(SecurityContext context) {
    return super.createHttpClient(context)
      ..badCertificateCallback =
          (X509Certificate cert, String host, int port) => true;
  }
}
void main() {
  HttpOverrides.global = new MyHttpOverrides();
  runApp(MyApp());
}

@kakajansh
Copy link
Owner

Closed for inactivity. Feel free to reopen.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants