Description
Type of issue
Typo
Feedback
The most common use of MAUI, I would think, is using it for mobile development. So I think it's very important to add the Android and iOS code in the tutorial.
For example:
private void Initialize()
{
// assume Windows for this sample
if (OperatingSystem.IsWindows())
{
var options = new InteractiveBrowserCredentialOptions
{
TenantId = TenantId,
ClientId = ClientId,
AuthorityHost = AzureAuthorityHosts.AzurePublicCloud,
RedirectUri = new Uri("http://localhost"),
};
InteractiveBrowserCredential interactiveCredential = new(options);
_client = new GraphServiceClient(interactiveCredential, _scopes);
}
else
{
// TODO: Add iOS/Android support
}
}
I would expect iOS and Android is added to the sample tutorial. Especially because it does not support the localhost redirect. Without the sample code for mobile, I would expect the tutorial to be rather useless or troublesome for many developers.
Page URL
https://learn.microsoft.com/en-us/windows/apps/windows-dotnet-maui/tutorial-graph-api
Content source URL
Author
Document Id
b773729a-1016-eeb4-09d0-5059fdf383c1