使用自定义 URL 方案从日历笔记启动我的应用程序 [英] Launch my app from Calendar Notes with Custom URL Scheme

查看:20
本文介绍了使用自定义 URL 方案从日历笔记启动我的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过单击日历笔记部分中的链接来启动我的应用程序,但我做不到...

I'm trying to get my application launched by clicking on a link in the Calendar's notes section, but I just can't do it ...

http://mailto: 的 URL 方案在注释部分有效(Safari 和 Mail 分别启动),但 myapp:// 不起作用,skype:

The URL schemes for http:// and mailto: are working in the notes section (Safari and Mail are started, respectively), but myapp:// does not work, and neither does skype:

myapp:// 在我将其放入 Safari 的地址字段时工作正常,因此自定义 URL 方案确实安装成功.

myapp:// is working fine when I put it into the address field in Safari, so the custom URL scheme did install successfully.

日历是否仅实现了一些标准 URL 方案而无法识别任何已安装的自定义 URL 方案?还是我做错了什么?

Is the Calendar only implementing some standard URL schemes and not able to recognize any installed custom URL scheme? Or am I doing something wrong?

推荐答案

好的,自己找到了...

Ok, found it myself ...

看来光写是不够的

myapp://

但它必须是

myapp://<sometexthere>

以便日历将其识别为自定义 URL 方案.Safari 也接受两个斜杠后没有文字的版本.

in order for the calendar to recognize it as a custom URL scheme. Safari also accepts the version without text after the two slashes.

一个人永远学不完......

One never learns enough ...

这篇关于使用自定义 URL 方案从日历笔记启动我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆