DingTalk Mini Program
This topic explains how to embed a published mobile application within a DingTalk Mini Program.
Prerequisites
-
You have added a domain for the mobile application and obtained its publishing address. For more information, see Application publishing and usage.
-
You have downloaded and installed the Mini Program Development Tool. For more information, see Mini Program Development Tool.
Procedure
-
Log in to the DingTalk Enterprise Admin Console.
NoteIf you do not have an account, follow the on-screen instructions to create one.
-
Create a mini program application, such as Mini Program Demo. For more information, see Create a Mini Program Application.
-
After the application is created, on the application details page, click Security Center in the left navigation pane. On the Webview Security Domain tab, click Add to configure a webview security domain.
Note-
The webview security domain for Mini Program Demo must match the domain you configured in Step 2: Publish.
-
If you use a domain name resolution and HTTPS acceleration service for your webview security domain, you must also add the official IoT Studio resource address:
https://g.aliplus.com. -
If the login box is not visible in the preview, add
g.alicdn.comto the webview security domain.
-
-
Run the Mini Program Development Tool. In the left navigation pane, select DingTalk > Enterprise Internal Application.
-
On the Enterprise Internal Application page, create a project. Enter the Project Name and select the Project Path, and then click Finish.
-
In the upper-left corner, select your Mini Program Demo. Then, replace the content of the index.axml file with the following code.
<web-view src="The publishing address of your mobile visualization application"></web-view> -
Publish and verify the DingTalk Mini Program. For more information, see Publish a Mini Program.