Gist
Search
⌃K

Cordova

The Cordova implementation makes use of the Gist web library.

Installation

NPM

Install the NPM package
npm install --save @gistproduct/web
To import and use Gist into your Cordova application you must copy the dist/gist.min.js file. You can use a utility like cordova-import-npm to automate the process.

Manual Download

Download the latest version of Gist Web and add the script to your index.html

Adding The Script

<script src="js/res/gist.min.js"></script>

Setup

Inside your config.xml file add the following for both iOS & Android.
<platform name="android">
<allow-navigation href="https://*gist.build*" />
...
<platform name="ios">
<allow-navigation href="https://*gist.build*" />
...
To complete your setup, please follow the Web library setup guide.

Important

The System action type does not work on Cordova, this is because internally, System actions behave as links with target="blank". As an alternative, change System actions to Application, Add a listener on the messageAction event, and invoke them manually.