自定义URL方案未被识别为SMS应用程序中的链接(仅限iphone 4 iOS 5.0)

问题描述:

摘要:
在我的应用程序中,我已经以myapp:// ..格式定义了一个自定义URL。但是当它出现在SMS中时,URL不会被识别为链接。因此用户无法点击它并启动应用程序。相反,他必须复制&将其粘贴到浏览器中。这仅在iPhone4(iOS v5.0)中发生

Summary: In my application, I've defined a custom URL in the format "myapp://.." . But the URL is not recognized as a link when it comes in an SMS. So the user is not able to tap it and launch the app. Instead, he has to copy & paste it in browser. This happens only in iPhone4(iOS v5.0)

重现步骤:
通过在info中指定新的URL方案,为应用定义自定义URL。 plist中。将带有应用程序自定义URL的SMS发送到iPhone4(iOS v5.0)。打开短信。

Steps to Reproduce: Define a custom URL for the app by specifying a new URL scheme in info.plist. Send an SMS with the custom URL of the app to iPhone4(iOS v5.0). Open the SMS.

预期结果:
网址必须在短信中显示为链接。

Expected Result: The URL must be displayed as link in the SMS.

实际结果:
URL在那里显示为纯文本而不是链接。

Actual Result: The URL is displayed there as plain text and not as a link.

回归:
升级到iOS 5之前,在同一个iPhone4中(iOS版本4.3),URL始终显示为链接。

Regression: Before upgrading to iOS 5, in the same iPhone4(iOS version 4.3), the URL was displayed as link always.

注意:
有趣的一面是,如果我将消息从同一个iPhone转发给自己,在发送的短信和新收到的短信中, URL将显示为链接。

Notes: The funny side is that, if I forward the message from the same iPhone to itself, in the sent SMS and the newly received SMS, the URL will appear as a link.

检查您是否使用大写/混合方案(如在MyApp://中。 ..)与全小写(myapp:// ...)。在iOS 5下,如果您尝试在自定义URL方案中使用大写,操作系统将无法识别并将抛出异常。如果这不起作用,几乎可以肯定是SMS代码的错误,在这种情况下你应该提交一个bug。如果有效,请告诉我。

Check if you're using uppercase/mixed scheme (as in MyApp://...) versus an all lowercase (myapp://...). Under iOS 5, the OS won't recognize and will throw exceptions if you try to use uppercase in a custom URL scheme. If that doesn't work, it's almost certainly a bug with the SMS code in which case you should file a bug. Let me know if that worked.