openServicesSettings method

Future<void> openServicesSettings()

Since Wi-fi must be enabled to use the plugin in Android, openServicesSettings can be used to redirect the user to the Wi-fi service settings on Android.

For iOS it is not necessary to have Wi-fi enabled. In case of its absence, the platform will try to establish a connection by other methods. However, this method will open the settings page for iOS, if you want the user to use Wi-fi.

Implementation

Future<void> openServicesSettings() {
  return NearbyServicePlatform.instance.openServicesSettings();
}