In Mobile Iron, you can link your Notifications to the correct installed Connection’s application on your device. So when you receive a newsletter from Connections, it contains a link to your application instead of the website where it came from.

First of all, you have to enable notifications to send the Mobile Links, it’s not enabled by default.

Change the file notification-config.xml by setting the following property to true: 
                 <property name=”includeMobileLinksInNotifications”>true</property>

Afterwards change the following file: ../profiles/dmgr/config/cells/RZCell/LotusConnections-config/notifications/resources/commonUrlUtil.ftl

Find the following lines:

       <#if linkForMobile??>
           <#local mobileLink =__generateMobileLink(linkForMobile)>
           <#if mobileLink?? && mobileLink != "">
              <#return linkify(mobileLink, linkTitle)>
           </#if>
        </#if>

And change it to:

    <#if linkForMobile??>
        <#local mobileLink =__generateMobileLink(linkForMobile)>
        <#if mobileLink?? && mobileLink != "">
            <#assign prefixLength = "http"?length>
            <#if mobileLink?starts_with("https")>
                <#assign prefixLength = "https"?length>
            </#if>
            <#local mobileLink = "mibrowsers" + mobileLink?substring(prefixLength, mobileLink?length)>
            <#return linkify(mobileLink, linkTitle)>
        </#if>
        <#return linkify(mobileLink, linkTitle)>
    </#if>

Sync all nodes and restart Connections. Now your notifications will contain the correct Mobile Link.

Visits: 1049

By angioni

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.