简体   繁体   English

“comgooglemaps://” - 错误:“操作无法完成。 (OSStatus错误-10814。)“

[英]“comgooglemaps://” - error: “The operation couldn’t be completed. (OSStatus error -10814.)”

I'm using the Google API with xamarin ios. 我正在使用带有xamarin ios的Google API。 I'm trying to use the Schema of URLs of Google Maps to do a search of a site .. this is my code.. 我正在尝试使用Google地图的网址架构来搜索网站..这是我的代码..

            if (UIApplication.SharedApplication.CanOpenUrl(new    NSUrl("comgooglemaps://")))
                     {

                         var pizza = "comgooglemaps://" + "?q=Pizza&center=37.759748,-122.427135";
                         var busqPizza = new NSUrl(pizza);
                        UIApplication.SharedApplication.OpenUrl(busqPizza);

                     }
                     else {
                         Console.WriteLine("No puede usar comgooglemaos://");
            }

error.. -canOpenURL: failed for URL: "comgooglemaps://" - error: "The operation couldn't be completed. (OSStatus error -10814.)" 错误.. -canOpenURL:网址失败:“comgooglemaps://” - 错误:“操作无法完成。(OSStatus错误-10814。)”

I have found a solution but I do not know if it is the correct form but I work. 我找到了一个解决方案,但我不知道它是否是正确的形式,但我工作。 This is the solution instead of using comgooglemaps:// use http://maps.apple.com?xxxxxx 这是解决方案,而不是使用comgooglemaps://使用http://maps.apple.com?xxxxxx

var pizza = " http://maps.apple.com?q=Pizza&center=20.661922,-103.392030 "; var pizza =“ http://maps.apple.com?q=Pizza&center=20.661922,-103.392030 ”; UIApplication.SharedApplication.OpenUrl(NSUrl.FromString(pizza)); UIApplication.SharedApplication.OpenUrl(NSUrl.FromString(比萨饼));

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 -canOpenURL:URL 失败:“fbauth2:/” - 错误:“操作无法完成。(OSStatus 错误 -10814。) - -canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed. (OSStatus error -10814.) iOS:-canOpenURL:URL失败:“ fbauth2:/”-错误:“操作无法完成。 (OSStatus错误-10814。)”在模拟器和设备上 - iOS: -canOpenURL: failed for URL: “fbauth2:/” - error: “The operation couldn’t be completed. (OSStatus error -10814.)” on Simulators & Devices 带有firebase canOpenURL的Swift Facebook Auth:URL失败:“ fbauth2:/”-错误:“该操作无法完成。 (OSStatus错误-10814。)” - Swift Facebook Auth with firebase canOpenURL: failed for URL: “fbauth2:/” - error: “The operation couldn’t be completed. (OSStatus error -10814.)” 尝试从我的应用程序打开其他应用程序时出现Swift错误| 该操作无法完成。 (OSStatus错误-10814。) - Swift Error when trying to open other apps from my app | The operation couldn’t be completed. (OSStatus error -10814.) Xcode8腾讯TIM -canOpenURL:URL失败:“ timapiV1://”-错误:“操作无法完成。(OSStatus错误-10814。) - Xcode8 Tencent TIM -canOpenURL: failed for URL: “timapiV1://” - error: "The operation couldn’t be completed. (OSStatus error -10814.) -canOpenURL:URL 失败:“fbauth2:/” - 错误:“操作无法完成。 (OSStatus 错误 -10814。)” SWIFT 5 FBDSKCoreKit 5 - -canOpenURL: failed for URL: “fbauth2:/” - error: “The operation couldn’t be completed. (OSStatus error -10814.)” SWIFT 5 FBDSKCoreKit 5 操作无法完成。 (OSStatus 错误 -54。) - The operation couldn’t be completed. (OSStatus error -54.) MidiClientCreate“操作无法完成。 (OSStatus错误-50。)” - MidiClientCreate “The operation couldn't be completed. (OSStatus error -50.)” 该操作无法完成。 (OSStatus错误-10827。) - The operation couldn’t be completed. (OSStatus error -10827.) 操作无法完成。 (OSStatus 错误 2003334207。) - The Operation Couldn’t Be Completed. (OSStatus Error 2003334207.)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM