Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS application unable to query for scheme "comgooglemaps", although i have added "comgooglemaps" in LSApplicationQuery in info plist

Tags:

ios

Getting this error - "This app is not allowed to query for scheme comgooglemaps.Even though i have added "comgooglemaps" in LSApplicationQuery.

Even i have also added "googlechromes" and google map is also installed on iPhone. Still i am getting this error everytime. Please help me with it.

Complete Error -

-canOpenURL: failed for URL: "comgooglemaps://" - error: "This app is not allowed to query for scheme comgooglemaps" 2018-08-24 12:31:58.882862+0530 BrotherToBrother[934:253238] Can't use comgooglemaps://

like image 425
Nishita Avatar asked Aug 24 '18 09:08

Nishita


2 Answers

You need add comgooglemaps in your plist of project info

enter image description here

like image 102
Phineas Huang Avatar answered Sep 25 '22 09:09

Phineas Huang


The regular adding scheme to info.plist doesn't work I don't know why. But finally I found a way by using info.plist source code

1- Right click on info.plist

2- Open source code

3- Copy the following code:

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

After changing a way it works for me. hopefully answer be useful for you

like image 35
Ahmed Elawady Avatar answered Sep 24 '22 09:09

Ahmed Elawady