Skip to content

[Bug] Mobile code uses deprecated APIs #5034

Open
@bgavrilMS

Description

Library version used

4.64.0

.NET version

net6-android, net6-ios

Scenario

PublicClient - mobile app

Is this a new or an existing app?

None

Issue description and reproduction steps

Build MSAL as a developer, with mobile targets enabled. The compiler will issue several warnings for example on:

This call site is reachable on: 'iOS' 14.2 and later, 'maccatalyst' 14.2 and later. 'UIApplication.OpenUrl(NSUrl)' is obsoleted on: 'ios' 10.0 and later (Please use the overload instead.), 'maccatalyst' 10.0 and later (Please use the overload instead.).

https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/blob/main//src/client/Microsoft.Identity.Client/Platforms/iOS/Broker/iOSBroker.cs#L183

Impact

When Google / Apple actually obsolete these APIs, apps will start crashing.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions