DingTalk Mini Program

Updated at:
Copy as MD

This topic explains how to embed a published mobile application within a DingTalk Mini Program.

Prerequisites

Procedure

  1. Log in to the DingTalk Enterprise Admin Console.

    Note

    If you do not have an account, follow the on-screen instructions to create one.

  2. Create a mini program application, such as Mini Program Demo. For more information, see Create a Mini Program Application.

  3. 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.com to the webview security domain.

  4. Run the Mini Program Development Tool. In the left navigation pane, select DingTalk > Enterprise Internal Application.

  5. On the Enterprise Internal Application page, create a project. Enter the Project Name and select the Project Path, and then click Finish.

  6. 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>
  7. Publish and verify the DingTalk Mini Program. For more information, see Publish a Mini Program.