Check Google map External Application installed in IOS device in Xamarin Forms IOS

Manish Prajapati 1 Reputation point
2022-10-12T06:14:41.163+00:00

Hello All,

I am not able to find How to check Google Maps External application is installed in IOS device or not.

Try with "comgooglemaps://" and "comgooglemaps-x-callback://" add in LSApplicationQueriesSchemes key in Info.plist and then Check using UIApplication.SharedApplication.CanOpenUrl mehod.

above method always return false value even I already installed a Google Maps in Ipad device.

Ipad Device

IOS version : 15.5

Please share your answer.

Thanks in advance

Developer technologies .NET Xamarin
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,436 Reputation points Microsoft External Staff
    2022-10-13T07:32:01.987+00:00

    Hello,

    Opening another application depends to two requirements: the first is whether you have the application installed in the device, and the second is whether the LSApplicationQueriesSchemes is correct. You can double check that LSApplicationQueriesSchemes is of type Array and that the string " comgooglemaps " exists in it.
    Or you can open info.plist with source code, and check

    <key>LSApplicationQueriesSchemes</key>  
    <array>  
      <string>comgooglemaps</string>  
    </array>  
    

    After that, you can run UIApplication.SharedApplication.CanOpenUrl(new NSUrl("comgooglemaps://"))

    If you have any other issues, please feel free to let me know.

    Best Regards,
    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.