npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

io.cordova.cordovaantelop

v1.0.0

Published

Entrust Cordova plugin integration is done by introducing a new plugin where a custom configuration must be set as detailed below

Downloads

2

Readme

Cordova Antelop Plugin

Entrust Cordova plugin integration is done by introducing a new plugin where a custom configuration must be set as detailed below

Before starting

Unzip folder. You will have 2 part: "BridgeAntelop" and demo app.

Declare configuration identifiers

  • For iOS : The plugin must embed a AntelopRelease.plist file that declare iOS configuration identifiers as indicated here: https://doc.antelop-solutions.com/latest/wallet/sdk/ios_integration.html#_anteloprelease_plist_parameters The AntelopRelease.plist file must be declared as a source file in the plugin.xml file, such as:
<source-file src="AntelopRelease.plist" />
  • For Android : Declare the following manifest meta-data : "fr.antelop.application_id" and "fr.antelop.issuerId" in the plugin.xml file, as shown below
<config-file target="AndroidManifest.xml" parent="/manifest/application">
  <meta-data android:name="fr.antelop.application_id" android:value="\3291680308056510485" />
  <meta-data android:name="fr.antelop.issuerId" android:value="demo" />
</config-file>

Forward Sytem events :

For iOS : The configuration plugin should contain an AppDelegate native iOS file that forwards system events to iOS Entrust SDK as documented here: https://doc.antelop-solutions.com/latest/wallet/sdk/ios_integration.html#_integrate_framework_basic

For Android : For hms push notification support please refer to : https://doc.antelop-solutions.com/latest/wallet/sdk/android_integration.html#_huawei_mobile_services_integration If your appplication is using firebase cloud messaging service for its own purposes, please refer to https://doc.antelop-solutions.com/latest/wallet/sdk/android_integration.html#_firebase_messaging_services_integration

For iOS Configure Capabilities :

You need to enable "push notifications" and set "app groups" in "Signing & Capabilities" tab.

Cordova app declaring such configuration project is able to access Entrust cordova bridge entry points and to run it properly.

Launch Demo App

When plugin is configured, you need to add your "BridgeAntelop" like this:

cordova plugin add BridgeAntelop

and install both platforms like this:

cordova platforms add ios
cordova platforms add android

Example Usage

To instanciate wallet, create "connect method" which use bridge...


class WalletManager {

  ...

  async connect(
    currentCredentials?: CustomerAuthenticationCredentials,
    newCredentials?: CustomerAuthenticationCredentials
  ): Promise<void> {
    return cordova.antelopwalletmanagermodule.connect(
      this.instanceKey,
      currentCredentials?.getInstanceKey(),
      newCredentials?.getInstanceKey()
    );
  }

  ...

}

Connect the wallet...

const protocole: WalletManagerProtocole = {
    onProvisioningRequired: () => {
      navigate(ROUTE_PATHS.provisioning);
    },
    onCredentialsRequired: (reason) => {
      navigate(ROUTE_PATHS.credentials, {
        state: {
          reason: reason,
        }
      });
    },
    onConnectionSuccess: async (wallet) => {
      await setWallet(wallet);
      navigate(ROUTE_PATHS.home)
    },
    onConnectionError: (error) => {
      navigate(ROUTE_PATHS.error, {
        title: 'WalletManager - Connection Error',
        error: error,
      });
    },
    onAsyncRequestSuccess: (asyncRequestCode) => {
      // do stuff
    },

    onAsyncRequestError: (asyncRequestCode, error) => {
      navigate(ROUTE_PATHS.error, {
        title: `WalletManager - AsyncRequest Error`,
        error: error,
      });
    },
  };

const walletManager = await WalletManager(protocole);
walletManager.connect();