在 Android 个应用程序(例如 Whatsapp、Viber..)中共享来自 Xamarin Forms 应用程序的超链接
Share a hyperlink from Xamarin Forms application in Android apps(e.g. Whatsapp, Viber..)
我使用 CrossShare class 来自 Plugin.Share 插件,但是当我在 Whatsapp 中分享时,例如,我得到整个 link 就像:
但我真正想要的是只有下一张图片上的文字,而不是整个 link 会把我带到相同的位置:
这是我用来分享的代码:
CrossShare.Current.Share(new ShareMessage
{
Title = ApplicationConstants.ApplicationName,
Text = "Nurnberg - Frankfurt 23.09.2017 00:00:00 7 €",
Url = "http://www.checkmybus.com..."
});
我该怎么做?
当前版本的 Whatsapp 应用程序无法做到这一点。我问了同样的问题 here 而这在当前 API.
中仍然不可能
"Each application has their own implementation to handle the shared messages. The best option will be to shorten the link (using bit.ly or goo.gl) to make it user-friendly."
希望他们很快就会允许这样的事情发生。
我使用 CrossShare class 来自 Plugin.Share 插件,但是当我在 Whatsapp 中分享时,例如,我得到整个 link 就像:
但我真正想要的是只有下一张图片上的文字,而不是整个 link 会把我带到相同的位置:
这是我用来分享的代码:
CrossShare.Current.Share(new ShareMessage
{
Title = ApplicationConstants.ApplicationName,
Text = "Nurnberg - Frankfurt 23.09.2017 00:00:00 7 €",
Url = "http://www.checkmybus.com..."
});
我该怎么做?
当前版本的 Whatsapp 应用程序无法做到这一点。我问了同样的问题 here 而这在当前 API.
中仍然不可能"Each application has their own implementation to handle the shared messages. The best option will be to shorten the link (using bit.ly or goo.gl) to make it user-friendly."
希望他们很快就会允许这样的事情发生。