MAM Universal Link Manager Overview

What it does

mam-universal-link-manager makes links and apps work together. It does two jobs:

  • Publishes the iOS trust file (AASA). Writes apple-app-site-association to your web root and /.well-known/ so iOS opens your app — not Safari — when someone taps a link to your site. Built from your Team ID, Bundle ID, and an optional path pattern.
  • Publishes the Android trust file. Writes the assetlinks.json you paste from the Play Console to /.well-known/assetlinks.json so Android App Links open your app.

When the app opens from a link to your site, it sends the link’s details back to the site (the mam_deep_link_data subaction), where they are stored per device for other plugins to use.

Branch.io deep links are no longer part of the platform. Contact invites and staff badges use your own site’s links, and the Branch.io settings are gone from the Universal Link page. Values saved there earlier stay in the database but are not used.


Where it’s configured

Everything lives on one page: Local App Setup → Universal Link.

Section Settings
iOS Universal Links iTunes Team ID, iTunes Bundle ID (both shared with push notifications; blank keeps the saved value), New Account URL (the path pattern the app claims; blank claims /, the home page only, and * claims every page)
Android App Links Digital Asset Links JSON (pasted from the Play Console; invalid JSON is not saved; JSON that Android cannot verify is saved with a warning, and a Status line under the field says what is missing; clear it to stop publishing the file)

Saving the page writes the trust files, adds a managed ForceType application/json block to .htaccess (marker-delimited, idempotent), and self-checks, once per platform, that the files are actually served as JSON (failures are logged to the MAM debug log as admin_alert). If the site cannot load its own URLs (some hosts block that), the check does not run: the files are left in place and the alert says the check could not run.

The page needs the manage_options capability, the same as the App Features page.


Other plugins ask this plugin whether universal links work on the site (the mam_universal_link_enabled filter). The answer is yes only when both are true:

  • the site can publish a link file: the iOS Team ID and Bundle ID are saved, or a valid Android Digital Asset Links JSON is saved, and
  • the site URL is HTTPS.

Having the plugin active is not enough on its own. The answer comes from the saved settings only (the site does not load its own URL to decide), and it is worked out once per request.

What switches on once the answer is yes:

Plugin Answer no (nothing saved yet, or the site is not HTTPS) Answer yes
MAM BuddyPress (friend codes) The friend code screen tells members to scan codes inside the app (universal_links is no) Codes can be opened from the phone’s Camera app (universal_links is yes)
MAM GeoDirectory, MAM Business Directory The download-app QR form is removed from the app’s left menu The QR form shows with the site’s download-app QR code

To override the answer (for example when the link files are served by something other than this plugin), filter the final result:

add_filter( 'mam_universal_link_configured', '__return_true' );

Data it stores

Store Contents Lifecycle
wp_mam_deep_link_data Per-device (pid) key/values delivered via the mam_deep_link_data app subaction One row per device + key; replaced on resubmission. Read by MAM In-App Purchase Manager for venue attribution
Options ios_pn_team_id, ios_pn_app_bundle_id (shared with MAM Main push setup), mam_universal_link_account_url, mam_android_asset (older branch_* and mam_universal_link_tracking_message values are no longer read) Plugin-owned options and the table are removed on uninstall; shared options and the published trust files are preserved

Good to know

  • Single-site: the trust-file and .htaccess writers assume a standard single-site install; on multisite they write to the shared web root.
  • HTTPS is required by both Apple and Google for universal/app links.
  • A link does not survive a fresh install. A link opens the app only when the app is already installed. A new user who taps or scans a link installs the app from the store, then taps or scans the link again; the app does not receive the original link after the install. (Branch.io used to carry links through an install; it is no longer part of the platform.)
  • Secondary apps (MAM Multi-App Manager) are added to the iOS file with the Main App’s paths. Save the Universal Link page again after adding one.
  • Deleting the plugin does not delete the published trust files — live apps depend on them. Remove them manually if the apps are retired.

  • Set up iOS universal links
  • Set up Android App Links
  • Hook: the mam_deep_link_data endpoint and filters

Metadata

Field Value
Article type Plugin Overview
Plugin slug mam-universal-link-manager
Applies to plugin version 26.24.1+
Category Plugin Reference
Depends on MAM Main
Works with MAM GeoDirectory, MAM Business Directory and MAM BuddyPress (features that need links to open the app)
Hooks exposed mam_universal_link_enabled, mam_universal_link_configured, mam_universal_link_accept_deep_link_data, mam_universal_link_deep_link_data, mam_universal_link_deep_link_data_reply
Last verified 2026-06-12
Was this article helpful?
Contents

    Need Support?

    Can't find the answer you're looking for? Don't worry we're here to help!