简体   繁体   English

没有为URL方案注册的处理程序itms-apps - Rate按钮模拟器

[英]no registered handler for URL scheme itms-apps - Rate button Simulator

I'm making RATE button for iPad Pro. 我正在为iPad Pro制作RATE按钮。 When tapping on Rate Button, the debug area shows... 点击Rate按钮时,调试区域显示......

LaunchServices: ERROR: There is no registered handler for URL scheme itms-apps LaunchServices:错误:URL方案itms-apps没有注册处理程序

-(IBAction)RateButton:(id)sender{

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps://itunes.apple.com/app/id12345678"]];

}

Why am I getting a "no registered handler for URL scheme" error when I have a URL present in code? 当我在代码中出现URL时,为什么我得到“没有注册URL方案的处理程序”错误?

The URL you're using is correct. 您使用的网址是正确的。 BUT if you're trying this on the simulator it won't work and it will show that exact error. 但是如果你在模拟器上尝试它,它将无法工作,它将显示确切的错误。 The App Store app URL Scheme only works on a device. App Store应用程序URL方案仅适用于设备。

You cannot connect to the ios (iPhone operating software) app store if you are on the simulator. 如果您在模拟器上,则无法连接到ios(iPhone操作软件)应用程序商店。 This url wont work because you are not on a ios device. 这个网址不会工作,因为你不在ios设备上。 Ios devices only can connect to the ios app store. Ios设备只能连接到ios应用商店。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM