Cordova
The Cordova implementation makes use of the Gist web library.
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.<script src="js/res/gist.min.js"></script>
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*" />
...
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 1yr ago