从 Web 应用程序在 iPhone 中启动 iChat 会话

发布于 2024-08-14 16:20:31 字数 547 浏览 2 评论 0原文

这实际上只是一个“假设”类型的问题,所以请原谅我,如果它是荒谬的或可笑的简单......

我有一个客户,其网站提供了“与顾问聊天”选项,您可以在许多销售和支持中看到该选项网站。我们想知道是否有一种方法可以让 iPhone 用户(或理论上的任何用户,但主要是 iPhone)单击此选项,并在提供基本表单信息(姓名、问题等)后,实际的聊天本身可以在聊天客户端。

  1. 这与“单击此处向我发送 AIM 消息”语法一样简单吗?

  2. XMPP(jabber)服务器是 Openfire,网络聊天使用 Fastpath 插件。是否需要比页面的 HTML/PHP 更深入地启用此功能?服务器/插件是否也需要修改?

  3. ,并且只能通过上述插件从外部访问)的安全吗?
  4. 这听起来像是 iPhone 用户会喜欢的东西,还是只是令人困惑/唐突?

对于最后一个问题的客观性感到抱歉,但我不想花时间在这个只会激怒用户的问题上。

欢迎推荐资源和文档。我并不是在找人来引导我完成整个事情,我只是想了解可以完成的事情以及从哪里开始阅读。

This is really just a "what-if" type question, so forgive me if it is either ridiculous or ridiculously easy...

I have a client whose site offers a "chat with a consultant" option that you see on many sales and support sites. We were wondering if there was a way that iPhone users (or any user, in theory, but mostly iPhone) could click this option and after giving the basic form info (name, question,etc) the actual chat itself could open up in the chat client.

  1. Is this as simple as the "click here to send me an AIM message" syntax?

  2. The XMPP (jabber) server is Openfire and the webchat uses the Fastpath plugin. Would this feature need to be enabled deeper than the page's HTML/PHP? Does the server/plugin need to modified as well?

  3. Would this threaten the security of the XMPP server (which is behind a firewall and can only be accessed externally via the above plugin)?

  4. Does this even sound like something that iPhone users would appreciate, or would it simply be confusing/obtrusive?

Sorry for the objective last question, but I'd hate to spend time on this only irritate users.

Referrals to resources and documentation welcome. I'm not looking for someone to walk me through the whole thing, I just want to get an idea of it can be done and where to start reading.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

辞旧 2024-08-21 16:20:31

我对你想要做什么有点困惑 - 用户在网站上填写表格,然后他们被放入 iPhone 上的“聊天室”?

这是可能的。然而,所有这些都要求用户已经安装了您的应用程序,因此这可能会成为您尝试执行的操作的障碍。

但是,如果它使用预先存在的聊天服务(例如 AIM),并且用户已经在其 iPhone 上安装了聊天客户端,那么您可能已经没问题了。您可以使用自定义 URL 或推送通知启动应用程序 - 但是,这是假设应用程序开发人员已启用此类挂钩,如果是这样,则它们已发布。

如果您想使用自己的客户端,如果用户在 iPhone 上填写表单,那么在提交时您可以将他们重定向到您的应用程序的自定义 URL。从移动 Safari 中,这将直接启动您的应用程序。请注意,用户必须已经安装了该应用程序才能正常工作,否则他们会看到错误,而且这不会是一个特别用户友好的错误。

另一种方法是,如果用户在计算机上填写表单,则可以通过推送通知。同样,他们必须首先安装该应用程序。他们会收到一条通知,一旦接受,就会启动您的应用程序。

最后一种方法,如果用户在计算机上填写表单,则他们必须首先下载您的应用程序并运行它,以便它可以通过网络服务与您的桌面客户端进行通信。

I'm a little confused by what you want to do - the user fills out a form on a web site and then they are put into a "chat room" on their iPhone?

This is possible. However all of them require that the user has already installed your app, so it may be a hurdle to what you are trying to do.

However if it's using a pre-existing chat service (such as AIM), you may already be OK if the user already has a chat client installed on their iPhone. You could launch the app using custom urls or push notifications - however, this is assuming that the app developer has enabled such hooks, and if so if they are published.

If you want to go with your own client, if the user is filling out the form on the iPhone, then on submission you could redirect them to a custom url for your application. From mobile Safari, this will directly launch your app. Note that the user must already have the app installed for this to work, or else they'll see an error, and it won't be a particularly user-friendly one.

Another way, if the user is filling out the form on their computer, is via push notification. Again, they must first have the app installed. They would receive a notification that, on acceptance, launches your app.

The final way, if the user is filling out the form on their computer, is that they would have to download your app first and run it, so that it could communicate with a desktop client of yours via network services.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文