openModule

Updated:
Supported Platforms:
Android
iOS

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.

Details

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
});

Arguments

Android
iOS

The route of the native extension to open

Android
iOS

Data in JSON form to pass to the native extension

Example:

JSON.stringify({foo: 'bar'})

Release Notes

Initial Release

Return response from extension