biocatch-cordova-plugin-ios v1.0.7
BioCatch Mobile SDK Cordova support
Translations
- Español / Spanish
- Ingles / English
- Portuguese
- Hebrew
Nuestro plugin de BioCatch Mobile SDK permite acceder a las funcionalidades nativas de las librerias del SDK de BioCatch desde Javascript. / Our BioCatch Mobile SDK plugin allows 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-ios
Paso 3 / Step 3
Dentro del proyecto iOS, seleccionar el target correspondiente a la aplicación, posteriormente seleccionar Build Settings y dentro de la sección "Build Options" buscar la opción "Always Embed Swift Standard Libraries" y asegurarse que esté en "YES" / Within the iOS project, select the target corresponding to the app, then select "Build Settings" and in the "Build Options" section look for the "Always Embed Swift Standard Libraries" option and make sure it is set to "YES"
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, 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