Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

InternetAddress.lookup() is not working on WEB #27

Open
gabriel-x-duarte opened this issue Nov 13, 2021 · 0 comments
Open

InternetAddress.lookup() is not working on WEB #27

gabriel-x-duarte opened this issue Nov 13, 2021 · 0 comments

Comments

@gabriel-x-duarte
Copy link

Hey guys, thank you very much for your work. I am trying to use InternetAddress.lookup() and its not working properly. could you please check it out?

static Future checkInternetConnection() async {
try {
final response = await InternetAddress.lookup("dart.dev");

  if (response.isNotEmpty) {
    return true;
  }

  return false;
} catch (_) {
  return false;
}

}

here is a piece of code.

it works just fine on mobile. The issue is on WEB

Thanks a lot,
Gabriel Duarte

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

No branches or pull requests

1 participant