Skip to content
React on Tabris.js app launch and read launch parameters.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
project/android
scripts
src
types
www
.gitignore
README.md
package.json
plugin.xml

README.md

Tabris.js Launch Monitor Plugin

React on Tabris.js app launch and read launch parameters. Currently only launch by URL is supported.

Can be used in conjunction with the cordova-plugin-customurlscheme plugin and app.launch(url).

Supported platforms

Android, iOS

API documentation

eslaunchmonitor

Events

urlLaunch
  • The urlLaunch event is fired when the app has been launched through a URL.
Event Parameters:
  • target : eslaunchmonitor
  • url: string
    • The URL the app was launched through.
  • queryParameters: {[key: string]: any}
    • Query parameters, parsed from the URL.

Properties

urlLaunchParameters : {url: string, queryParameters: {[key: string]: any}}

The most recently used parameters to launch the app by URL. Particularly useful when the urlLaunch event listener cannot be registered early enough to handle the first triggered event.

Usage

App 1:

config.xml

<plugin name="cordova-plugin-customurlscheme" spec="4.3.0">
  <variable name="URL_SCHEME" value="testapp" />
</plugin>

JS

eslaunchmonitor.on({urlLaunch: ({url, queryParameters}) => {
  console.log(url); // testapp://?foo=bar
  console.log(queryParameters); // {foo: 'bar'}
}})

App 2:

JS

import {app} from 'tabris';

app.launch('testapp://?foo=bar');
You can’t perform that action at this time.