How to call mobile app using Email/Telegram?
CompletedHello there,
We are developing an application that sends a notification via Telegram/Email. The message contains a link created using the "How to Call Client Using URL?" article. At this point everything is ok. The problem occurs when we try to open the link using the "nx-vms" protocol. The biggest email managers do not allow opening this type of link (tested on Outlook, Gmail, and Privatemail). The only tested email manager that allows this is Mail on Windows 10.
In telegram the link is not recognized as a link. This is because the http/https protocol is not included in the link.
We need an alternative to do this call in these mail managers and telegram.
Thanks
-
Hi Miguel Dina,
Not sure if I can help you, but can you share some more details?
For example, a sample email? You can send it to amsterdam@networkoptix.com.Have you tried adding the link as:
<a href=nx-vms://nxvms.com/client/ef18a181-d40a-404f-adbe-5fdbded3232e/view?auth=bm9ybWFuZ0BuZDR3b3Jrb3B0aXguY29tOlYxZDMwUDB3M3IzZA==>link_text</a>
0 -
Yes, we have tried adding the link like that but managers are keeping removing the links. Just now we sent the email to the provided address.
Here is a C# sample of our code:
//appUrl = "nx-vms://nxvms.com/client/ef18a181-d40a-404f-adbe-5fdbded3232e/view?auth=bm9ybWFuZ0BuZDR3b3Jrb3B0aXguY29tOlYxZDMwUDB3M3IzZA=="
public string GetMailHTML(string? appUrl)
{
StringBuilder builder = new StringBuilder();
builder.Append("<div style=3D\"padding-bottom: 50px;\">");
builder.Append("<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">");
builder.Append($"<tr> <td> <div> TITLE </div> </td> </tr>");
builder.Append($"<tr> <td> <div> 17-11-2022 • 09:56:00 </div> </td> </tr>");
builder.Append($"<tr> <td> <div> DESCRIPTION </div> </td> </tr>");
if (appUrl != null)
{
//Our code
builder.Append($"<tr> <td> <div style=3D\"font-size: 11px;\"> <a href=3D\"{appUrl}\" style=3D\"color: #168cf5;text-decoration: underline;cursor: pointer;\" target=3D\"_blank\">Click to view in mobile app</a> </div> </td> </tr>");
//Norman sample
builder.Append($"<tr> <td> <div style=3D\"font-size: 11px;\"> <a href={appUrl} style=3D\"color: #168cf5;text-decoration: underline;cursor: pointer;\" target=3D\"_blank\">Click to view in mobile app - Norman sample </a> </div> </td> </tr>");
}
builder.Append("</table>");
builder.Append("</div>");
return builder.ToString();
}0
Please sign in to leave a comment.
Comments
2 comments