Skip to content

[Question]: [network_info_plus] Error getting WiFi name in background mode. #3379

@alextran1502

Description

@alextran1502

What is your question?

Hello,

I am trying to get WiFi when the app is in the background and run into the following error message.

flutter: MissingPluginException(No implementation found for method wifiName on channel dev.fluttercommunity.plus/network_info)

When the app is in the foreground, I can get the WiFi name without issues.

Here is my info.plist related content

	<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
	<string>We require this permission to access the local WiFi name for background upload mechanism</string>
	<key>NSLocationUsageDescription</key>
	<string>We require this permission to access the local WiFi name</string>
	<key>NSLocationWhenInUseUsageDescription</key>
	<string>We require this permission to access the local WiFi name</string>

Here is a screenshot of the app's capability in XCode

image

Here is a screenshot of related content in the Podfile

image

I have set the Location permission to Always for the app

I have tried running flutter clean, flutter pub get, and rebuilding as well as uninstall and reinstall the app, but the issue is still there.

If someone got any pointer to get this run in iOS background mode, I'd greatly appreciate

Thanks,
Alex

Checklist before submitting a question

  • I searched issues in this repository and couldn't find such bug/problem
  • 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

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions