I faced a issue of warning as I went on publishing new release to test the Connectivity introduced.
I installed Xam.Plugin.Connectivity from NuGet Packages
using Plugin.Connectivity;
Created a function at Public class Level
public static bool CheckConnection()
{
if (CrossConnectivity.Current.IsConnected)
return true;
else
return false;
}
And then called in my MainPage.xaml.cs
public MainPage()
{
InitializeComponent();
if (Sql_Common.CheckConnection() == false)
{
DisplayAlert("Network Error!", "Network connection could not be establised to server!", "ok");
}
}
protected void OnAppearingAsync()
{
base.OnAppearing();
if (Sql_Common.CheckConnection() == false)
{
DisplayAlert("Network Error!", "Network connection could not be establised to server!", "ok");
}
}
But then the warning came at Publishing the APK as follows:
Warning: Deactivation of this APK will result in your app being available for new installs on fewer types of devices. Tip: If this is an unintended change, then retain this APK in the new release or ensure that your new APKs support all currently supported devices.
1 differentiating: android.hardware.wifi
I did some google but could not reach the risk factor I was assuming that users may not get later updates or installations less on devices, due to adding this android.hardware.wifi feature requried.
So Please help me that can I proceed with this feature? Will it have any impact on my later releases? And am I correct that due to installing the Xam.Plugin.Connectivity, this warning has especially came?
Edited:- One thing common was found Adding following line into manifest file
<uses-feature android:name="android.hardware.wifi" required="false" />
was common suggestion but then will it still check the connectivity?