iPhone 应用程序的 WhatsApp url 方案
我们正在开发一款 iPhone 应用程序并计划集成 Whatsapp。
有没有办法从 iPhone 应用程序启用点击通话/消息? Skype 通过以下方式允许这样做:
<a href="skype:skypehandle?call"> Skype </a>
Whatsapp 是否有同等功能?
We are developing an iPhone app and planning to integrate Whatsapp.
Is there a way to enable click to call / message from the iPhone app? Skype allows this by following:
<a href="skype:skypehandle?call"> Skype </a>
Is there an equivalent for Whatsapp ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
目前 Whatsapp 没有注册 URL 方案。
您可以通过检查应用程序 info.plist 的内容来检查您喜爱的应用程序是否支持它们。
我确信有 Windows 等效项,但我使用 Mac,因此安装了一个名为 iPhone Explorer(现已重命名为 iExplorer)的免费应用程序,它将手机安装为驱动器,并允许您通过树结构查看应用程序内容。
无需越狱。
info.plist 位于所选应用程序的 appname.app 文件夹中。
将其复制到桌面并打开该文件。
查找“URL 类型”键并展开。这是添加 :// 后将在 safari 中或使用 UIApplication openURL 方法打开的 URL。
更新 - 2012 年 11 月 - 最新版本现在添加了 URL 方案。
Whatsapp://
不知道它是否有任何与之相关的“操作”。
更新 - 2013 年 11 月
Whatsapp 博客提供有关可以执行的操作的信息
http://www.whatsapp.com/faq/en/iphone/23559013
currently Whatsapp doesn't have a registered URL scheme.
You can check if you favourite apps support them by inspecting the contents of the apps info.plist.
I'm sure there are windows equivalents but I use a mac, so have a free app called iPhone Explorer (now renamed to iExplorer) installed which mounts the phone as a drive and allows you to view app contents via a tree structure.
No jailbreak required.
The info.plist is in the chosen apps appname.app folder.
copy this to your desktop and open the file.
Look for the 'URL types' key and expand. This is the URL that when :// is added will open in safari or with the UIApplication openURL method.
update - November 2012 - latest version now adds URL scheme.
whatsapp://
don't know if it has any 'actions' associated with it though.
update - Nov 2013
Whatsapp blog has info on the actions that can be performed
http://www.whatsapp.com/faq/en/iphone/23559013
17/07/2013 自昨天更新以来,whatsapp 具有公共 URL 方案:
Whatsapp 官方 URL 方案< /a>
17/07/2013 Since yesterday's update, whatsapp has a public URL Scheme:
Whatsapp official URL Scheme
有一些网站列出了大量 iPhone 应用程序 URL 方案。 http://handleopenurl.com/scheme?page=27 是我所知道的最大的一个。它似乎不包含 WhatsApp 的任何内容。
http://wiki.akosma.com/IPhone_URL_Schemes 是另一个列表,但也不包括 WhatsApp。
应用程序的开发者可以创建和发布他们自己的 URL 方案,但 WhatsApp 似乎还没有这样做。
There are a few sites that list numerous iPhone app URL Schemes. http://handleopenurl.com/scheme?page=27 is the largest one that I know of. It doesn't seem to contain anything for WhatsApp.
http://wiki.akosma.com/IPhone_URL_Schemes is another list, but also doesn't include WhatsApp.
It's up to the developer of the app to create and publish their own URL Schemes, and it doesn't look like WhatsApp have done so yet.
随着新 iPhone v2.10.1 版本的发布,WhatsApp 现在支持自己的 url 方案。例如,要打开一个带有文本“Hello World”的新聊天编辑器,您必须执行以下操作:
更多信息可以在其网站上的常见问题解答中找到:
http://www.whatsapp.com/faq/en/iphone/23559013
With the new iPhone v2.10.1 release WhatsApp now supports its own url scheme. E.g. to open a new chat composer with the text "Hello World" you have to do this:
More information can be found in this FAQ on their site:
http://www.whatsapp.com/faq/en/iphone/23559013