Skip to content

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

Closed
@juanjuliocorica

Description

@juanjuliocorica

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions