Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Internet connected or not #16621

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

Closed
prasant10050 opened this issue Apr 16, 2018 · 9 comments
Closed

Internet connected or not #16621

prasant10050 opened this issue Apr 16, 2018 · 9 comments

Comments

@prasant10050
Copy link

  1. i know The connectivity plugin states in its docs that it only provides information if there is a network connection, but not if the network is connected to the Internet
    but how to know the network is connected to the Internet or not?
    is there any code to solve this issue.

2)when i use Connectivity plugin it shows error-
Error output from Xcode build:

** BUILD FAILED **

Xcode's output:

=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target.
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
/Users/prashant/IdeaProjects/job_posting/ios/Runner/GeneratedPluginRegistrant.m:6:9: fatal error: 'connectivity/ConnectivityPlugin.h' file not found
#import <connectivity/ConnectivityPlugin.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Could not build the application for the simulator.
Error launching application on iPhone X.

How to fit it?

@zoechi
Copy link
Contributor

zoechi commented Apr 16, 2018

Please add the output of flutter doctor -v

@prasant10050
Copy link
Author

flutter doctor -v
[✓] Flutter (Channel master, v0.3.1-pre.17, on Mac OS X 10.13.4 17E199, locale en-IN)
• Flutter version 0.3.1-pre.17 at /Users/prashant/Library/flutter
• Framework revision c83d24d (34 minutes ago), 2018-04-16 21:48:21 -0700
• Engine revision 76cb311
• Dart version 2.0.0-dev.47.0.flutter-f76dad0adc

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/prashant/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /Users/prashant/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.3, Build version 9E145
• ios-deploy 1.9.2
• CocoaPods version 1.4.0

[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 22.2.1
• Dart plugin version 171.4424
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.1)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 23.2.3
• Dart plugin version 181.4445.29

[✓] Connected devices (1 available)
• iPhone X • F043D5AC-E2C2-4B56-876A-623C9F5D8C83 • ios • iOS 11.1 (simulator)

• No issues found!

@koraxis
Copy link

koraxis commented May 23, 2018

I am having the same issue, Have you found a solution?

@prasant10050
Copy link
Author

NO solution

@zoechi
Copy link
Contributor

zoechi commented Jul 23, 2018

Please try pod update in the ios/directory

@ghost
Copy link

ghost commented Aug 2, 2018

I am facing this issue when I try to install on iphone simulator.

fatal error: 'connectivity/ConnectivityPlugin.h' file not found

@zoechi
Copy link
Contributor

zoechi commented Aug 2, 2018

Try running pod update in ios/

@zoechi
Copy link
Contributor

zoechi commented Aug 26, 2018

Cosing as dup of #18673

@zoechi zoechi closed this as completed Aug 26, 2018
@github-actions
Copy link

github-actions bot commented Sep 2, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants