简体   繁体   English

链接到SMS应用程序无法在Android邮件中打开

[英]Link to SMS app does not open in Android mail

I've done searches and troubleshooting, but can't seem to figure this out. 我已经完成搜索和故障排除,但似乎无法弄清楚。

I'm trying to send out emails containing a pre-filled SMS. 我正在尝试发送包含预填短信的电子邮件。 This works for iOS, and on Android when opened in the browser. 这适用于iOS,并且在浏览器中打开时适用于Android。 However, the email client on Android does not allow these links? 但是,Android上的电子邮件客户端不允许这些链接吗? Is there any way to fix it? 有什么办法可以解决?

sms:?body=Hello sms:?body =你好

I was thinking of using a URL shortener to create a http reference, but these services only allow web links. 我当时在考虑使用URL缩短器创建http参考,但是这些服务仅允许Web链接。

Ideally I would have one link that launches SMS on both Android and iOS, and opens email or a web link on other devices. 理想情况下,我将有一个链接可以在Android和iOS上启动SMS,并在其他设备上打开电子邮件或Web链接。

Thanks! 谢谢!

You could host your own 'link shortener' with JS redirects. 您可以使用JS重定向托管自己的“链接缩短器”。 You'd basically just need to put a page somewhere on your website and include something like this on it: 您基本上只需要在您的网站上放置一个页面,并在其中包含以下内容:

<script>
    window.location = "sms://";
</script>

Build out some additional platform-specific redirect logic, and then put the URL of that page in your email. 建立一些其他特定于平台的重定向逻辑,然后将该页面的URL放入您的电子邮件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM