Hi,
Anyone here tried creating custom request handler for mobile?
Just wanted to know how did you deploy the file into creatio hosted environment. Do you need creatio support for it or is there a system setting I need to enable to allow me to upload the custom request handler. (Documented Guide by Creatio)
Thank you.
Lem
Like
Hi Solem,
These steps need to be performed through a local development environment:
1. Set up the TypeScript SDK template project following Creatio's documentation
2. Run `npm run build` to compile and generate main.js
3. Place main.js in your package at: Packages/{YourPackage}/Files/src/mobile/{YourModuleName}/main.js
4. In Configuration → Actions → File System Development Mode → Update packages from file system
5. Compile and clear cache
You will also need to update your mobile manifest with two entries:
"RemoteModules": [
{
"name": "YourModuleName",
"remoteName": "YourModuleName",
"type": "remoteModule",
"path": "src/mobile/YourModuleName/main.js"
}
],
"CustomModules": [
"YourModuleName"
]
Note: Both RemoteModules and CustomModules entries are required. If CustomModules is missing, the module will appear to load but none of your handlers will actually fire.
Also make sure the EnableMobileSDK feature flag is turned on at /0/Features
Hope that helps!
Hello,
To deploy custom request handlers for mobile, please follow the steps outlined below:
- Build the project that contains your custom request handlers.
- Install Clio, then use it to pull and extract the package.
- After extraction, in the root directory of your package, create the following directory structure: Files/src/mobile/<module_name>/
- Copy the build output file from the out directory of your project into the newly created folder.
- Install the package in your target application.
For additional details and guidance, please refer to the following resources:
https://github.com/Advance-Technologies-Foundation/clio
Use Clio | Creatio Academy