Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

[Xamarin Essentials] iOS - Launcher.TryOpenAsync return true but the application is not open

voidstreamvoidstream FRMember ✭✭✭

Hello everyone,

I'm trying to used Xamarin.Essentials.Launcher.TryOpenAsync with iOS but that always return me true.
I create my schemes in the info.plist. For example :

    <dict>
        <key>CFBundleURLName</key>
        <string>com.microsoft.Office.Excel</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>mssDevMicrosoftExcel</string>
        </array>
        <key>CFBundleTypeRole</key>
        <string>Viewer</string>
    </dict>

I add my schemes in the whitelist in the info.plist. For example :

<key>LSApplicationQueriesSchemes</key>
    <array>
        <string>mssDevMicrosoftExcel</string>
    </array>

I'm url look likes this:

await Launcher.TryOpenAsync("mssDevMicrosoftExcel://");

Someone have an idea?

Best regards

Best Answer

Answers

  • voidstreamvoidstream FRMember ✭✭✭

    @LandLu Thank you, simple & logic

Sign In or Register to comment.