Trigger.io

Trigger.io Forge Documentation

Important

This documentation is deprecated, and only kept here to support users of browser extension APIs. If you are using Trigger.io for iOS or Android, see https://trigger.io/docs/.

urlhandler: Custom URL schemes

Config

The urlhandler module must be enabled in config.json

{
    "modules": {
        "urlhandler": {
            "scheme": "your.url.scheme"
        }
    }
}

API

urlhandler.urlLoaded

Platforms: Mobile

Triggered when the app is loaded by a custom URL scheme.

urlhandler.urlLoaded.addListener(callback, error)
Arguments:
  • function({url -- url}) callback: callback invoked with details of the url.
  • error (function(content)) -- called with details of any error which may occur