Publish and use an application

更新时间:
复制 MD 格式

To use a mobile application, first configure its components in the mobile application editor and then publish it to the cloud. This topic describes how to publish the application and how to use it, which includes integration.

Step 1: Preview and debug

  1. In the mobile application editor, click Preview in the upper-right corner to view and debug the appearance of the components.

  2. On the right side of the application preview page, choose a device under Select Model.

  3. Scan the QR code to debug the application's features on your mobile device.

    On the preview page, use the Select Model dropdown on the right to switch the target device model. The simulator on the left displays a real-time preview of the application.

Step 2: Publish

  1. Return to the mobile application editor, click the Settings icon设置 in the left navigation bar, and add a domain name on the Domain Management tab.

    Note

    You must associate the mobile application with a domain name before you can publish it.

  2. Click the Page icon页面 in the left navigation bar, and then click the publish icon发布 in the upper-right corner.

  3. Click OK.

  4. (Optional) Configure application authentication. For more information, see application authentication.

    If you enable account or token authentication, only users who log in with an account or provide a signed token can access the application.

  5. Navigate to the IoT Studio > application development page in IoT Platform, or to the project's homepage. Click the Mobile Application tab. In the actions column for the published application, click Publication Address to view and copy the access address.

    The Publication Address dialog box also provides a QR code for mobile access, and links to Learn how to integrate with DingTalk and Learn how to integrate with WeChat Official Account.

Next steps

To use the published application, open its access address on a supported mobile device.

For details on mobile device compatibility, see Mobile device compatibility.