在 wp8 应用程序中通过 whatsapp 共享内容 [英] Share content via whatsapp in wp8 apps

查看:21
本文介绍了在 wp8 应用程序中通过 whatsapp 共享内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚使用 WP8 SDK 提供的 ShareStatusTask 通过 SMS、Mail Twitter 和 Facebook 实现共享:

Just implemented sharing via SMS, Mail Twitter and Facebook with the from the WP8 SDK provided ShareStatusTask:

http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.tasks.sharestatustask(v=vs.105).aspx

这里似乎不支持 Whatsapp - 你们知道解决这个问题的技巧吗?

Whatsapp does not seem to be supported here - do you guys know a trick to get around this?

推荐答案

技术上没有,还没有,但未来可能会使用 Uri Schemes.

Technically no, not yet, but something may come in the future using Uri Schemes.

目前,您似乎只能通过这样做来运行 WhatsApp 应用程序:

For now, it seems that you can only run the WhatsApp app by doing this:

await Windows.System.Launcher.LaunchUriAsync(new Uri("whatsapp:"));

但在 iPhone 上,你可以使用这种形式的 Uri

but on iPhone, you can use this form of Uri

whatsapp://send?text=Hello%2C%20World!

所以我希望不久的将来 Windows Phone 版 WhatsApp 中也会出现相同的功能.他们没有理由不实施它.

so I expect the same functionality to appear in the near future in WhatsApp for Windows Phone. There's no reason why they wouldn't implement it.

事实上,也许他们已经有了,但我还没有发现它被公开记录.在诺基亚开发者网站上查看其他 Uri 方案

In fact, maybe they already have, but I haven't found it publicly documented. See on Nokia Developer website for other Uri Schemes

这篇关于在 wp8 应用程序中通过 whatsapp 共享内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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