Code Monkey home page Code Monkey logo

get_ip_flutter's People

Contributors

anthony-curtis avatar eddayy avatar khashayarmotarjemi avatar lotrofans avatar ryoksec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

get_ip_flutter's Issues

Cannot Build for Android

I have a lot of other imports that work fine, but I get the follow error when I import get_ip. Any thoughts?

  • Error running Gradle:
    ProcessException: Process "/Users/***/android/gradlew" exited abnormally:

Configure project :app
WARNING: API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getAssemble(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
WARNING: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with 'variantOutput.getProcessResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
WARNING: API 'variantOutput.getProcessManifest()' is obsolete and has been replaced with 'variantOutput.getProcessManifestProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessManifest(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
WARNING: API 'variant.getPackageApplication()' is obsolete and has been replaced with 'variant.getPackageApplicationProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getPackageApplication(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
WARNING: API 'variant.getExternalNativeBuildTasks()' is obsolete and has been replaced with 'variant.getExternalNativeBuildProviders()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getExternalNativeBuildTasks(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

Configure project :get_ip
WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getJavaCompile(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
*********************************************************
WARNING: This version of connectivity will break your Android build if it or its dependencies aren't compatible with AndroidX.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
This warning prints for all Android build failures. The real root cause of the error may be unrelated.
*********************************************************
Command: /Users/***/android/gradlew app:properties

Finished with error: Please review your Gradle project setup in the android/ folder.

Issues with Samsung Series 10 and some Oppo Devices

We are facing issues with some Samsung Series 10 devices (on Android 10) and some Oppo Devices (on Android 7.1.1).
The device wifi settings show that the device is connected with external internet ip address, but we are getting local ip address 10.X.X.X from the library.

External or Internal ip address ?

Hello !

Thanks for this plugin ! I love it ! Easy to use.

I receive this address ip : 192.168.232.2 when i do this :

String ipAddress = await GetIp.ipAddress;
    print(ipAddress);

It's an internal address ip ? Is it possible to get the external address ip ?

Thanks

'get_ ip/get_ ip-Swift.h' file not found

Hello, after I introduced a location plug-in, there was an error in your IP access plug-in. It was normal before it was introduced. I feel very confused about this, because it reported an error that the file could not be found. The following is the error message:

'get_ ip/get_ ip-Swift.h' file not found

Unhandled Exception: MissingPluginException(No implementation found for method getIpV6Adress on channel get_ip)

Hello,
I used Flutter with Android Studio.
I try to recover the IP address, but when using :
String ipAddress = await GetIp.ipAddress;
I get the following error:
Unhandled Exception: MissingPluginException(No implementation found for method getIp6Adress on channel get_ip).

I added in the dependencies :
get_ip: ^0.4.0

I have pub get ,
and uses the import :
import 'package:get_ip/get_ip.dart';

IOS

i'm new to flutter , i cant built my app for IOS because get_ip plugin giving #import <get_ip/get_ip-Swift.h> file not found error

The plugin `get_ip` is built using an older version of the Android plugin API

Hi! Thank you for your good job. I try to use your plugin in the flutter module and have a warning above: The plugin get_ip is built using an older version of the Android plugin API which assumes that it's running in a full-Flutter environment. It may have
undefined behaviors when Flutter is integrated into an existing app as a module. The plugin can be updated to the v2 Android Plugin APIs by following https://flutter.dev/go/android-plugin-migration. Can you do it upgrade?

Build failed (Release mode)

Hi, I'm trying to run my project in release mode. I get the following error message:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':get_ip:verifyReleaseResources'.

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed

/Users//Desktop/Source/Flutter//build/get_ip/intermediates/res/merged/release/values/values.xml:236: error: resource android:attr/fontVariationSettings not found.
/Users//Desktop/Source/Flutter//build/get_ip/intermediates/res/merged/release/values/values.xml:237: error: resource android:attr/ttcIndex not found.
error: failed linking references.

My flutter doctor results:

[✓] Flutter (Channel master, v1.10.15-pre.330, on Mac OS X 10.15 19A602, locale el-GR)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.3)
[✓] VS Code (version 1.39.2)
[✓] Connected device (3 available)

• No issues found!

I use AndroidX migration. In debug mode, everything works fine!
Thanks!

get_ip does not specify a Swift version

When trying to build on mac, within android studio, i`m getting below error:

[!] Unable to determine Swift version for the following pods:

- `get_ip` does not specify a Swift version and none of the targets (`Runner`) integrating it have the `SWIFT_VERSION` attribute set.
Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.

Fails to build release

My project will fail to build when I add "get_ip: 0.2.0" to the yaml file. I have many other packages which are working fine.
I am however able to build in debug mode.

Help will be appreciated.

This is my error log:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:lintVitalRelease'.

Could not resolve all artifacts for configuration ':app:dynamicProfileRuntimeClasspath'.
Could not resolve project :get_ip.
Required by:
project :app
> java.lang.NullPointerException (no error message)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 7s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 7.7s
Gradle task assembleRelease failed with exit code 1

Flutter Doctor:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v1.3.8, on Microsoft Windows [Version 10.0.17763.379], locale en-GB)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Android Studio (version 3.3)
[!] VS Code (version 1.32.3)
X Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (1 available)

! Doctor found issues in 1 category.

Not working properly in android 6-8

In android 6-8 I am not getting the IP when the internet is off but ehen I am using the same in android 8+ device then IP is returned even if there is no interest connection

Not getting local IP Web APP

Im trying to get the local ip address in a Flutter Web app. I use get_ip 0.4.0 - (it states it is working under flutter web).

I have this function (basicaly copied your example):

Future initPlatformState() async {
print("Test");
String ipAddress;
// Platform messages may fail, so we use a try/catch PlatformException.
try {
ipAddress = await GetIp.ipAddress;
} on PlatformException {
ipAddress = 'Failed to get ipAddress.';
} on Exception {
print("Exception");
}

print("Ip: $ipAddress");

}
and i call it in initState of main.dart.

The console just has the output "Test", it does not output the ip or "Exception".
I'm running the app on MacOs.

4g get ip not working

Currently I am not able to get IP on 4g for ios, does anyone have this problem also?

Get network Mask

Hello! First of all thanks for such a great library!
Is it possible to add a feature to get the network mask also?

Best regards!

Andoid

Exception has occurred.
MissingPluginException (MissingPluginException(No implementation found for method getIpAdress on channel get_ip))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.