[Question]: Problem with NetworkInfo().getWifiIP(); return null on iPhone 14 Pro and iOS 16.3.1
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
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
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.
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.
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

iPad mini 6th, iPadOS 16.2

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.
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.
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?
Having the same problem
Same problem here running on a iOS Simulator (iPhone 14 Pro Max). Any news ?
facing the same problem, any update?
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
This issue still exists.
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
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
Still unsolved.
@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.