I am trying to get the installation ID of the Appcenter to only send notifications to selected devices, but
string installid = AppCenter.GetInstallIdAsync().ToString();
returns System.Threading.Tasks.Task1[System.Nullable1[System.Guid]]
And string installid = AppCenter.GetInstallIdAsync().Result.ToString();
returns empty string
The documentation states that you need to retrieve the installId as follows
System.Guid? installId = await AppCenter.GetInstallIdAsync();
You need to await the call, and then, you can cast the ToString.