【问题标题】:Hi i am facing problem to send whatsapp message to a particular group using intent嗨,我在使用意图向特定群组发送 whatsapp 消息时遇到问题
【发布时间】:2018-11-01 14:56:51
【问题描述】:

您好,我在使用 intent 向特定群组发送 whats app 消息时遇到问题。我可以使用 intent 将 whats app 消息发送给特定的聊天联系人。但我无法发送到什么应用程序组。我也尝试过使用whats app api并传递whats app group id。但它导航到邀请联系人链接,如果联系人已经在组中,则表明您已经是开发人员

【问题讨论】:

  • 描述更多。到目前为止,您对代码的尝试是什么?
  • 我正在尝试通过传递 whats 应用程序组 ID 和消息,使用意图将文本放置到我是其成员的 whats 应用程序组。使用 url chat.whatsapp.com/uniqueId 我从组共享选项中获取的唯一 ID

标签: android whatsapp


【解决方案1】:

要向您需要的特定群组发送消息群组共享链接 see,请使用该链接并尝试以下代码

Uri uri = Uri.parse("https://chat.whatsapp.com/uniqueId");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(Intent.createChooser(intent, ""));

【讨论】:

  • 感谢嗅探器。但我也尝试过这个解决方案,但它只是导航到 whats 应用程序组,只显示你已经在组中,而不是将我传递的文本消息作为额外文本。
猜你喜欢
  • 2015-06-01
  • 2021-12-31
  • 1970-01-01
  • 2013-09-04
  • 2013-10-22
  • 2015-07-08
  • 2013-09-24
  • 2012-12-07
  • 1970-01-01
相关资源
最近更新 更多