Gist
Search…
Cordova
The Cordova implementation makes use of the Gist web library.

Installation

NPM

Install the NPM package
1
npm install --save @gistproduct/web
Copied!
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

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

Setup

Inside your config.xml file add the following for both iOS & Android.
1
<platform name="android">
2
<allow-navigation href="https://*gist.build*" />
3
...
Copied!
1
<platform name="ios">
2
<allow-navigation href="https://*gist.build*" />
3
...
Copied!
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.
Last modified 2mo ago