Skip to content
  • Documentation
    • Mobile App – Signatus
    • Web App – Signatus 2 API
    • Web App – OKdokument API
    • Web App – OKdokument
  • Contact Us

Customization – Wizard SDK

  • 1. What is a Wizard
  • 2. Introduction to Wizard Javascript API Calls
  • 2.1 Integration
  • 2.2 Document signing
  • 2.3 PDF Document Processing
  • 2.4 Device Features
  • 2.5 Files & Folders
  • 2.6 Application Features
  • 2.7 System Utilities
  • 3. Example: Simple process

Customization – Branding Guidelines

  • 1. Introduction
  • 2. Customize logo and welcome screen
  • 3. Customize main menu
  • 4. Sign your own document

Customization – PDF & Form Preparation

  • PDF Forms creation
  • 1. Tags
  • 2. Acrofields
  • 3. Sample document

Integration – REST API

  • 1. Introduction
  • 2. Download
  • 3. Upload

Integration – App-to-App

  • 1. Introduction
  • 2. How does it work?
  • 3. START-ACTIVITY-FOR-RESULT (APP – SIGNATUS – APP)
  • 4. Sending data to Master Wizard via Intent
  • 5. Runtime Configuration Parameters (Display, Fields, Signing Process)

Hardware

  • 1. Android
  • 2. iOS / iPadOS
  • 3. Windows

Signatus user manual

  • 1. Introduction
  • 2. Main menu
  • 3. Signing
  • 4. Submit signed document
  • 5. Settings in detail
  • 6. Example Wizard
View Categories
  • Home
  • Documentation
  • Mobile App - Signatus
  • Integration – App-to-App
  • 4. Sending data to Master Wizard via Intent

4. Sending data to Master Wizard via Intent

0:00 / 1:57
  • View as Markdown Open this page as plain Markdown (opens in a new tab)
  • Open in ChatGPT Ask questions about this page (opens in a new tab)
  • Open in Claude Ask questions about this page (opens in a new tab)
  • Open in Google AI Studio Ask questions about this page (Google account required) (opens in a new tab)

The response from the master wizard is returned with code 130 using the startActivityForResult method.

The master wizard receives JSON data (e.g., {‘id’:’ 1234567890′, ‘op’: ‘ED434567’}).

String messageStr = new StringBuffer("{'type': 'wizard', 'data':{'id':'1234567890'} }"); 
Intent intent = new Intent(); intent.setAction("com.anasoft.signatus.signDocument"); intent.putExtra("message", messageStr); 
// example {'type': 'wizard', 'data': {'id':'ABCD'} } startActivityForResult(intent,130);

1. Sub-Wizard JavaScript Integration – Detecting External App Launch

let n = getInfo({'code':'NativeIntent'});
If n == 'true' wizard started the native intent.

▪ Signatus API sends information to the wizard indicating that it was launched by an external application.
▪ This is handled using the onSystem function.
▪ The input JSON includes a parameter code with the value 90.
▪ If a sub-wizard is running, information about the ongoing signing process is sent.

function onSystem (data) {
var parameterJson = JSON.parse(data);
var json = parameterJson.parameter;
if (90 === json.code) {
logD('external app call wizard, data:, '+data);
Main.closeNativeIntentWizardRun();
alert("Complete the signing or close the session.");
}
}

2. Notifying External App: Cancel or OK

Cancel message:

Main.closeNativeIntent = function (data) {
let param = {};
param.code=105; // optional number
param.name = "nativeIntent"; // constant
param.status = "cancel"; // constant
param.call="Main.nativeIntent"; // optional function name
param.parameter = {
'param' : 'test_value_abc' // auxiliary optional parameter
}
setSystem(param);
}

OK message:

Main.okNativeIntent = function (data) {
let param = {};
param.code=106;
param.name = "nativeIntent";
param.status = "ok";
param.call="Main.nativeIntent";
param.parameter = {
'param' : 'test_value_xyz' // pomocný parameter
}
setSystem(param);
}

3. Minimizing the App and Launching the Master Wizard (Terminating the Sub-Wizard)

Main.nativeIntent = function (data) {
logD("call nativeIntent, data: "+data);
if(data)
{
var parameterJson = JSON.parse(data);
if (parameterJson.hasOwnProperty('parameter')){
var json = parameterJson['parameter'];
if(json.status == "ok")
{
alert('send info native intent : ok');
cancel({'state':'minimize'});
window.location.href = '../../index.html';
}
else if(json.status == "cancel")
{
alert('send info native intent : cancel');
cancel({'state':'minimize'});
window.location.href = '../../index.html';
}
}
}
};
Updated on 04/02/2026
3. START-ACTIVITY-FOR-RESULT (APP – SIGNATUS – APP)5. Runtime Configuration Parameters (Display, Fields, Signing Process)
  • Documentation
    • Mobile App – Signatus
    • Web App – Signatus 2 API
    • Web App – OKdokument API
    • Web App – OKdokument
  • Contact Us
Proudly powered by WordPress