Skip to content

Feedback: add Android and iOS code #5347

Closed
@Skorpjun161

Description

@Skorpjun161

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

https://github.com/MicrosoftDocs/windows-dev-docs/blob/docs/hub/apps/windows-dotnet-maui/tutorial-graph-api.md

Author

@alvinashcraft

Document Id

b773729a-1016-eeb4-09d0-5059fdf383c1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions