JMango Operations BV

            How to enable the Universal link feature for your app?

            JMango360 supports the Universal link in the mobile app since version 2.42.0 for the following cases:
            1. Opening a product detail directly in app when mobile users click on an URL from a Google search result.
            2. Opening a product detail directly in app when mobile users click on an URL in an email, a newsletter for instance.
            3. It supports 2 app types: Magento and Prestashop.
            If you would like to have this feature in your app, please request to update your app to the supported versions at first (mobile 2.42.0 and later ones).
            Then, configure your website to make it work with this feature, details as below:

            A. Upload 2 configuration files into <PATH_TO_DOCUMENT_ROOT>/.well-known (one for iOS app and the other for Android app)
            These files will be provided by JMango360 Team, please request us by creating a ticket.

            Note for Android app: if you use your own keystore for your Android app, you need to providing us the SHA256 cert fingerprints. Please scroll down to the end of this article, you will find How to get the SHA256.

            B. Configure .htaccess inside the root directory
            Step 1: Go to the root directory.
            Step 2: Open .htaccess file
            Step 3: Add the below codes to the file
            - Add this code under the  "## this line is specific for 1and1 hosting"
            1. AddType application/json apple-app-site-association
            - Add these codes under the " <IfModule mod_rewrite.c>"
            1. RewriteRule .well-known/apple-app-site-association$.well-known/apple-app-site-association.json [L]
            2. RewriteRule apple-app-site-association$ .well-known/apple-app-site-association.json [L]
            - Add these codes at the end of .htaccess file
            1. <Files apple-app-site-association>
            2.         AddType application/json .*
            3. </Files>
            C. Configure the apache site
            Step 1. Open the apache configuration of the site, for example:
            Step 2. Add these codes under the <VirtualHost *:80> and <VirtualHost *:443>
            1. <Directory PATH_TO_DOCUMENT_ROOT/.well-known/>
            2.        Options Indexes FollowSymLinks
            3.        AllowOverride all
            4.        Require all granted
            5.        <Files apple-app-site-association>
            6.            Header set Content-type "application/pkcs7-mime"
            7.        </Files>
            8.        Header Set Pragma "no-cache"
            9.        Header Set Expires "Thu, 1 Jan 1970 00:00:00 GMT"
            10.        Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate"
            11.        Header Unset ETag
            12.        FileETag None
            13.    </Directory>
            Step 3. Restart the Apache server.

            Did you know?
            Get the SHA256 cert fingerprints by running the command below
            1. keytool -list -v -keystore [path-to-keystore]/[name-of-keystore].keystore
            Replace the red texts with your real value, for example:
            1. keytool -list -v -keystore keystore/my-release-key.keystore
            The SHA256 will be returned, please copy and send us this value.
            Updated: 16 Apr 2019 08:18 PM
            Help us to make this article better
            0 0