urlhandler by Trigger.io

Currently displaying version

urlhandler: Custom URL schemes

The forge.urlhandler namespace allows you to define a URL scheme for other apps and webpages to open your app and send data to it.

Config Options

Scheme
The scheme that your app wants to handle. E.g. using 'myscheme' would open your app if the user visited 'myscheme://'

API

forge.urlhandler.urlLoaded.addListener(callback, error)ΒΆ

iOS, Android

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

Parameters:
callback
function({url: url}) callback invoked with details of the url
error
function(content) called with details of any error which may occur