Opens a native mobile extension.
openModule
is only supported inside the Q2 mobile banking app. It is not available in the mobile browser or desktop browser.openModule
opens a native mobile extension by name and allows the passing of arguments. It returns a promise that resolve or rejects depending on communication from the native extension or mobile app.
Type
tecton.actions.openModule(route: string, data?: string): Promise<any | void>;
Example
tecton.actions.openModule('someModule', '{"someData": "someValue"}').then((response?: any) => {
// module opened successfully
// optionally, response returned at completion of module workflow
})
.catch(err => {
// module could not open or module failure
});
The route of the native extension to open
Data in JSON form to pass to the native extension
Example:
JSON.stringify({foo: 'bar'})
Initial Release
Return response from extension