1.0.7 • Published 4 years ago

biocatch-cordova-plugin-android-support v1.0.7

Weekly downloads
12
License
ISC
Repository
-
Last release
4 years ago

BioCatch Mobile SDK Cordova support

Translations

  • Español / Spanish
  • Ingles / English
  • Portuguese
  • Hebrew

Nuestro plugin de BioCatch Mobile SDK nos permite acceder a las funcionalidades nativas de las librerias del SDK de BioCatch desde Javascript. / Our BioCatch Mobile SDK plugin allows us to access the native functionalities of the BioCatch SDK libraries from Javascript.

Paso 1 / Step 1

Posicionarse en el directorio de proyectos en el cual va a incluir la integración con BioCatch / Go to project directory in which you will include integration with BioCatch

Paso 2 / Step 2

Agregar plugin para soporte nativo / Add the plugins for native support:

> ionic cordova plugin add biocatch-cordova-plugin-android

En caso de que el proyecto de android esté construido con librerías de "support" (pre Android X), usar el siguiente plugin: / In case the android project is built with support libraries (pre Android X), use the following plugin:

> ionic cordova plugin add biocatch-cordova-plugin-android-support

Paso 3 / Step 3

Se recomienda utilizar Android Studio para los siguientes pasos: / It is recommended to use Android Studio for the following steps:

Dentro del proyecto de Android, buscar el archivo proguard-rules.pro y agregar las siguientes líneas: / Inside the Android project, find the file proguard-rules.pro and add the following lines:

  //BioCatch
  -keep class com.biocatch.client.android.sdk.** { *; } 
  -keep class org.msgpack.** { *; }
  -keep class sun.misc.** { *; }

Paso 4 / Step 4

Finalmente, incluir en los módulos de la aplicación las llamadas a las rutinas de BioCatch de la siguiente manera: / Finally, include the calls to the BioCatch routines in the application modules as follows:

...
//To invoke startMethod:
function startBC() {
    
    var wupServerHost = 'YOUR_SERVER_HOST';
    var customerId = 'YOUR_CUSTOMER_ID';

    var csid = generateCSID();
    
    BioCatchPlugin.start(wupServerHost, csid);
    //or
    BioCatchPlugin.startV2(wupServerHost, customerId, csid);

}

//To change contexts
function changeContext() {

    var context = "ContextXYZ";

    BioCatchPlugin.changeContext(context);

}

//To update the customerSessionId
function updateCSID() {
    
    var csid = generateCSID();

    BioCatchPlugin.updateCustomerSessionId(csid);

}

function generateCSID() {
    return "AUTO_GENERATED_VALUE"; //UUID RECOMENDED
}
...

Contacta a tu ingeniero de solución dedicado para obtener la url del servidor y el id de cliente así como para detalles de implementación. / Contact your dedicated solution engineer for the server url and customer id as well as well as implementation details.

Nota / Note

Dentro del directorio platforms se encuentran las carpetas correspondientes a iOS y Android para abrir los proyectos en Xcode o Android Studio según sea el caso. / Within the platforms directory there are the folders corresponding to iOS and Android to open the projects in Xcode or Android Studio as the case may be.

Para integración con ionic / For ionic integration

Review documentation here

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago