plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

[Question]: Problem with NetworkInfo().getWifiIP(); return null on iPhone 14 Pro and iOS 16.3.1

Open juanjuliocorica opened this issue 2 years ago • 18 comments

What is your question?

Hi, I need help to solve the problem because I have already searched everything and tried everything I could and I can't get the app to work correctly on iphone 14 pro devices with iOS 16.3.1

The problem occurs in the function that returns the IP of the Wi-Fi network NetworkInfo().getWifiIP(). I tried adding more permissions via plist.info but it still doesn't work. It always returns a null value.

The code snippet I use is very simple:

Future<Estados> _verificarConexionWifi() async { ipAddress = await NetworkInfo().getWifiIP(); if (ipAddress == null) { estadoDeConexion = Estados.sinWifi; } return estadoDeConexion; }

The app has been published for a long time and we have no reports of problems on other devices. I asked Apple to allow me permission to use multicast messages just in case, but it did not solve the problem.

I don't know what else to do and that is why I am writing to see if something similar is happening to someone and they already solved it to find out how they did it.

Thank you very much in advance for any help you can give me.

Unfortunately I don't have the debug log because we don't have an iphone 14 Pro and with the devices we have we can't recreate the problem.

Checklist before submitting a question

  • [X] I Google'd a solution and I couldn't find it
  • [X] I searched on StackOverflow for a solution and I couldn't find it
  • [X] I read the README.md file of the plugin
  • [X] I am using the latest version of the plugin
  • [X] All dependencies are up to date with flutter pub upgrade
  • [X] I did a flutter clean
  • [X] I tried running the example project

juanjuliocorica avatar Mar 29 '23 18:03 juanjuliocorica

hello. Here is another link with the same problem. Do you think it could be the name of the WiFi network that is no longer en0?

https://developer.apple.com/forums/thread/727064

tks

juanjuliocorica avatar Apr 09 '23 12:04 juanjuliocorica

Do you think it could be the name of the WiFi network that is no longer en0?

Thanks for reporting and providing additional information. It might be that the issue is indeed in this change. Will try to look at it soon.

vbuberen avatar May 01 '23 07:05 vbuberen

thank you! Unfortunately I don't have a physical iPhone 14 pro to debug and send you more information or a possible solution. keep in touch.

juanjuliocorica avatar May 07 '23 23:05 juanjuliocorica

Hi, also faced this issues on my iPad Mini 6th gen, but its working fine on my iPhone

iPhone 14 Pro, iOS 16.3.1 Screen Shot 2023-05-09 at 4 23 18 PM

iPad mini 6th, iPadOS 16.2 Screen Shot 2023-05-09 at 4 23 22 PM

kvinltf avatar May 09 '23 08:05 kvinltf

Thank you kvinltf for your contribution to the topic. If you know how to modify the code of the interface for iOS you could do some tests modifying the library. I tried blindly because I didn't have a physical device with the problem and couldn't solve it. I'm still looking for how to solve it.

juanjuliocorica avatar May 12 '23 12:05 juanjuliocorica

I'm having this issue as well. This only happens in my Mac mini M1 with the emulator (iOS 16.4) (Xcode 14.3). My boss has a 2019 MBP and doesn't have this issue with the emulator.

smunoz-ml avatar May 19 '23 14:05 smunoz-ml

Hi, I wanted to inform you that we already have 4 users with the same problem and they all have iPhone 14 pro max. Could anyone solve the problem?

juanjuliocorica avatar May 31 '23 19:05 juanjuliocorica

Having the same problem

salmaahhmed avatar Jul 18 '23 08:07 salmaahhmed

Same problem here running on a iOS Simulator (iPhone 14 Pro Max). Any news ?

Skyost avatar Aug 06 '23 17:08 Skyost

facing the same problem, any update?

porum avatar Aug 14 '23 09:08 porum

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days

github-actions[bot] avatar Nov 13 '23 00:11 github-actions[bot]

This issue still exists.

Skyost avatar Nov 13 '23 09:11 Skyost

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days

github-actions[bot] avatar Feb 12 '24 00:02 github-actions[bot]

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days

github-actions[bot] avatar May 13 '24 00:05 github-actions[bot]

Still unsolved.

Skyost avatar May 14 '24 09:05 Skyost

@Skyost I would suggest to check out this discussion https://github.com/fluttercommunity/plus_plugins/issues/2156#issuecomment-1994382601 as I believe that it is the same problem here.

vbuberen avatar May 14 '24 16:05 vbuberen