---
url: https://qiwuadmin.com/en/features/mobile.md
description: >-
  Qiwu employee mobile client: sign-in, approvals, messages, App/H5 chat, voice
  messages, foreground calls, native builds and outstanding real-service, device
  and redistribution checks.
---

# Mobile app

Qiwu includes a client for employees' phones, called the **mobile app** below. On their phones, employees can sign in, check their to-dos, handle approvals, and read messages and bulletins.

The mobile app is built with **uni-app**, a framework for writing pages in Vue that compiles the same code into a WeChat mini program and into phone apps. So the mobile app has a single codebase that supports the **WeChat mini program** (mini programs are apps that run inside WeChat), the **Android app** and the **iOS app**. It talks to the same server as the desktop admin console: accounts, permissions, processes and messages are all the same data.

The mobile app is for employees only. A mobile client for members or customers is not part of the template.

The mobile app is **optional**: all its code lives in the `mobile/` directory at the repository root, and you can delete the whole directory if you don't need it; see [Desktop only](#desktop-only).

::: info Current status
Done: sign-in, Workbench, approvals (including dynamic forms), messages, the Me page, Chinese and English, light and dark themes, realtime push, new to-do WeChat alerts, app update checks, and generated mobile pages. App/H5 also integrates [employee chat](/en/features/im), voice messages and foreground audio/video; the mini program has no chat.

Automated tests include unit and H5 end-to-end tests, App source builds, mini program builds and package-size checks, including basic office approvals. The calling plugin separately has real SDK compilation, UTS linking and simulator platform tests. Product host signing/install, real LiveKit/TURN, hardware media and app-store acceptance remain outstanding. Android transitive dependency redistribution is unresolved; see [App requirements](/en/features/im#app-requirements-and-acceptance). The current public version does not include attendance (clock-in/out).

Still in progress: item-by-item checks on real devices, sending WeChat subscribe messages with a real AppID and real templates, app store listings, and the mini program release. Building the app and uploading the mini program on Windows have not been verified either. Before going live, work through the [Mobile development · Release checklist](/core/mobile#发布清单) (Chinese) item by item.
:::

## Supported platforms

| Platform | Purpose | Differences from the other platforms |
| --- | --- | --- |
| WeChat mini program | Production release | WeChat sign-in is available; **New to-do WeChat alerts** can be turned on; the appearance always follows the system; attachments are picked from WeChat chat history |
| Android app, iOS app | Native packaging targets; signing/install, devices and redistribution are separate checks | Update checks and appearance switch; chat can select any allowed file, while ordinary upload controls still select pictures only; foreground calls need the native plugin |
| H5 | Only for development, debugging and automated tests; not a production release target | No update checks; attachments use the browser's file picker |

**H5** is the web version opened in a browser. During development you can debug in a desktop browser first, then check the result in WeChat DevTools and on phones; see [Mobile development · Debugging in the browser (H5)](/core/mobile#在浏览器里调试-h5) (Chinese).

## Sign-in

![Mobile sign-in page](/screenshots/en-mobile-login.webp)

The mobile app opens on the sign-in page. If you have already signed in on this phone and the sign-in has not expired, it goes straight to the Workbench.

* **Two methods**: the **Password** and **SMS code** tabs, with the same rules as on desktop; see [Sign-in and accounts · Sign-in methods](/features/login#登录方式) (Chinese).
* **Captcha**: as on desktop, the parameter `captcha.mode` decides whether a slider or an image captcha appears; when it is off, none appears. See [Sign-in and accounts · Captcha](/features/login#验证码) (Chinese). Tapping **Get code** to send an SMS goes through the same check first. Once the code is sent, the button counts down ("Resend in Ns").
* **Remember username**: remembers only the username, only on this phone. The password is never saved.
* **Staying signed in**: App duration follows `auth.mobile.session_days`: default `0` keeps active use signed in, with sign-in required after 400 days without opening; a positive value counts from the original sign-in. H5 remains 7 days and the mini program retains WeChat silent sign-in. One App session per account is the default; signing into another App ends the old session and clears its chat cache. See [App sessions](/core/mobile#app-长期会话与单-app-会话) (Chinese).
* **Password change required**: if the account still uses its initial password or the password has expired, after sign-in you can only stay on the **Change password** page. The page explains why, and you can also **Sign out**. You reach the Workbench only after changing the password.
* **No sign-up or password reset**: use the desktop for those.
* **Footer**: the language switcher on the left; the version, **Privacy** and **Terms** on the right.

::: warning Replace Privacy and Terms before release
On the sign-in page, **Privacy** and **Terms** currently open the About page. Before release, point them to the privacy policy and terms of service on your own website. App store and mini program reviews check them.
:::

### Tenant code

When the server has [multi-tenancy](/en/features/multi-tenancy) on, the mobile app changes as follows:

* The sign-in page gets an extra field below the two tabs, at the top of the form, with the placeholder "Tenant code (blank for the default tenant)". Password and SMS sign-in share it; platform (default tenant) accounts leave it empty. SMS sign-in always remembers the code; password sign-in remembers it only when **Remember username** is ticked;
* The app and the mini program can find a tenant only by its code. When H5 is deployed on a domain bound to a tenant, the field is not shown;
* The automatic WeChat sign-in when the mini program opens needs no code; the **Link WeChat** page does;
* When the tenant's package has no approvals, the **Approvals** tab is hidden, and so are **New request**, the **To-dos** and **In progress** numbers and **Awaiting me** on the Workbench; when the package has no **System**, **Bulletins** on the Workbench is hidden;
* The top of the Workbench and the **Me** page show the tenant's brand name and logo, or the tenant name when no brand name is set;
* When the tenant is disabled or has expired, the app shows the real reason: "Your tenant is disabled or has expired. Please contact your administrator.";
* Entering a tenant is not possible on mobile; platform staff do it on the desktop.

![Mobile sign-in page with the tenant code](/screenshots/en-mobile-tenant-login.webp)

For details, see the repository's [mobile docs · Multi-tenancy](https://github.com/732124645/qiwu-vue-admin/blob/main/docs/mobile.md#多租户租户编码) (Chinese).

### WeChat mini program sign-in

This is available only in the WeChat mini program and is **off by default**:

1. When the mini program opens and you are not signed in, it first signs you in with WeChat in the background, with nothing for you to do.
2. If this WeChat account is already linked to an employee account, you go straight to the Workbench.
3. If not, the **Link WeChat** page opens. Sign in once with your password or an SMS code (the button is **Link and sign in**) to link it. After that, opening the mini program takes you straight in.

After you sign out, WeChat sign-in does not run automatically again while the mini program stays open; it waits until the next time you open the mini program. For how to enable it and the linking rules, see [Sign-in and accounts · WeChat mini program sign-in](/features/login#微信小程序登录) (Chinese).

## The four tabs at the bottom

After sign-in, the bottom of the screen has four tabs: **Workbench**, **Approvals**, **Messages** and **Me**.

**Approvals** and **Messages** carry badges with the number of to-dos and of unread messages; above 99 they show "99+". The numbers on the Workbench and these two badges come from the same data. They are read again each time you switch tabs, come back from another page, or the app returns to the foreground.

## Workbench

![Mobile Workbench](/screenshots/en-mobile-home.webp)

* **Top**: the greeting "Hello, display name", with "department · role" below it.
* **Three numbers**: **To-dos**, **In progress** (processes you started that have not ended yet) and **Unread**. Tap one of the first two to open the **Approvals** tab, and **Unread** to open the **Messages** tab.
* **Shortcuts**: **New request**, **Leave** and **Bulletins**. **Leave** shows only for people with the **Add** permission of leave requests (`biz.leave.create`).
* **Awaiting me**: the 3 latest to-dos. Tap one to open its approval detail, or tap **View all** to open the **Approvals** tab. With no to-dos, it shows "You're all caught up".

You can add shortcuts for your project; see [Mobile development · Adding an entry](/core/mobile#加一个入口) (Chinese).

## Approvals

![Mobile approval list](/screenshots/en-mobile-approval.webp)

Approvals on the phone use the same processes as on desktop: processes designed and published on desktop can be started, handled and viewed on the phone. For what each approval action means, see [Workflow · Approval actions](/en/features/workflow#approval-actions).

### Approval lists

At the top of the **Approvals** tab you can switch between four lists: **To-dos**, **Done**, **Started** and **CC'd to me**.

* Only records that concern you are listed.
* Pull down to refresh; scroll to the bottom to load the next page.
* There are no filters besides these four lists.
* When there are no to-dos, it shows "You're all caught up" and a **View done** button.

### Approval detail

Tap a record to open **Approval detail**:

![Mobile approval detail](/screenshots/en-mobile-approval-detail.webp)

* **Top**: the process name, the process state, and "Started by (name) on (time)". When it is your turn, it also shows "Your turn · step name".
* **Form**: the content of the request. Dynamic forms show right here; see [Dynamic forms on mobile](#dynamic-forms-on-mobile).
* **Approval history**: who did what at each step, and when.

The phone does not show the process progress (no progress tree and no diagram). The people who can open the details are the same as on desktop: the initiator, the assignees, the CC recipients, and admins with permission. Nobody else can open them. Opening an unread CC marks it as read automatically.

### Approval actions

When it is your turn, **Approve** and **Reject** show at the bottom; the other actions are under **More**:

* **Send back**, **Transfer**, **Delegate**, **Add signers** (**Before me** and **After me**), **Copy to**, **Comment**.
* Depending on the situation, these also appear: **Remove signers**, **Withdraw**, **Send reminder**, **Resubmit**, **Cancel process**.
* On a task someone delegated to you, or one you were added to as a signer, you can only approve, copy to others and comment.

A few rules:

* **Send back** lets you pick one of the steps already passed; the last option is the initiator.
* When the step requires a comment, both approving and rejecting need one. Comments are at most 1000 characters.
* **Send reminder** works at most once an hour. Trying again too soon shows "You can send a reminder once per hour. Please try again later."
* While a request is being submitted, the button shows a loading state and cannot be tapped again.

### Starting a request

**Workbench → New request** lists the processes you may start, grouped by the "Process category" dictionary.

* **Processes with a dynamic form**: with a bound form, you fill it in on a form page and then start the process; without one, you start it in a **bottom sheet** (a panel that slides up from the bottom of the screen). If the process has steps set to **Picked by the initiator**, pick at least one person (approver or CC recipient) for each of those steps.
* **Processes with a business form**: you can start and view them on the phone only if they have their own mobile page. The template supports mobile submission and editing after return for **leave**, plus complete read-only details and task handling for **travel, expenses and seal use**. Those three types are created and edited on desktop. For other business processes without a mobile page, starting shows "Start this process on a computer", and the form in their details shows "View it on a computer", business decisions such as approval or rejection are blocked; use desktop to handle the request.

For the difference between dynamic and business forms, see [Workflow · Two kinds of forms](/en/features/workflow#two-kinds-of-forms). To build mobile pages for other business forms, see [Mobile development · Starting and viewing a process on the phone](/core/mobile#让流程在手机上发起和查看) (Chinese).

### Leave

**Workbench → Leave** opens the leave request form. Fill in **Leave type**, **Starts at**, **Ends at**, **Days** (half days allowed) and **Reason**; the checks are the same as on desktop. **Submit for approval** saves the request and starts the process.

When the request is sent back to you, tap **Resubmit** in the approval detail. People with the **Edit** permission of leave requests (`biz.leave.modify`) get the leave form to edit and submit again; people without it resubmit directly, with no changes. You can also tap **Cancel process** to end the request.

### Dynamic forms on mobile

![Dynamic form on mobile](/screenshots/en-mobile-form.webp)

Dynamic forms (forms designed in the form designer and bound to a process) can also be filled in and viewed on the phone:

* Every component available in the form designer can be shown on the phone, including the business components (**User**, **Department**, **Dictionary**, **Attachments**, **Region**) and the calculated components (**Days (calculated)**, **Detail table**); see [Form designer · Available components](/en/features/formkit#available-components).
* Fields follow the access settings of your step: hidden fields are not shown, **Editable** fields can be changed, and the rest are read-only. Approving and resubmitting submit only the **Editable** fields.
* Calculated values (days, detail totals) are for display only; the server's recalculated result is what counts.
* A few components cannot be filled in on a phone. Those fields are read-only and show "Fill this in on a computer". When a whole form cannot be shown, the page says "This form can't be shown on a phone; start it on a computer".

For which components are read-only and which validation rules the phone does not check, see [Workflow · Dynamic forms on mobile](/en/features/workflow#dynamic-forms-on-mobile).

### Attachments

* Files are uploaded to the server one at a time. The size limit follows this field's setting in the form, or the parameter `storage.max_size_mb` when the field sets none. The phone checks the number and size of the files first, before anything is uploaded.
* How you pick files depends on the platform: the WeChat mini program picks from WeChat chat history, the app can only pick images (take a photo or choose from the album), and H5 uses the browser's file picker.
* Uploaded attachments show their name and size and open through an authenticated same-origin interface, limited to 20 MiB. Preview formats depend on the device. Failure to load decision information or attachments blocks a business decision with an explanation; see [Office requests](/en/features/oa).

### Picking people and departments

Picking people for transfers, delegation, adding signers, copying to others and starting a process always opens a people picker in a bottom sheet. It lists all enabled users, you can search by name, and with multiple selection the confirm button shows how many people are selected. Picking a department also uses a bottom sheet, and you can pick a department at any level.

## Messages

![Mobile Messages tab](/screenshots/en-mobile-messages.webp)

The **Messages** tab:

* **Top**: how many messages are unread, for example "3 unread".
* **Bulletins**: an entry at the very top, with the title of the latest bulletin and an unread badge. It opens the bulletin list, which lists only the 5 latest, like the bell in the desktop top bar.
* **Messages**: below are the inbox messages sent to you. The icon in front of each one shows which of the two categories it belongs to, "Business" or "System". Pull down to refresh, scroll to the bottom to load more, or tap **Mark all as read**.
* Tap an inbox message to open the **Message** page, which also marks it as read. Inbox messages are plain text with their line breaks kept; bulletin details show rich text that was sanitized when it was saved.

Bulletins are published on desktop in **System → Message center → Bulletins**; inbox messages are sent by the system's various features. See [Message center](/features/messaging) (Chinese).

## Employee chat, voice messages and calls

With `APP_IM=true` and Chat included in the tenant package, the app's Messages tab adds a Chat / Notifications switch. Its badge combines inbox and chat unread counts. Employees can find colleagues in the tenant directory, start direct/group chat and send text, pictures, allowed files, stickers and voice messages. See [Employee chat and calls](/en/features/im). The mini program has no chat entry.

Voice messages use the existing attachment service and need no LiveKit service. Realtime calls additionally need `im.call.enabled` and a deployed/configured [LiveKit/TURN service](/en/core/livekit); none is preconfigured. Calls are foreground-only. Backgrounding, signing out or losing page ownership stops media; returning does not automatically open a microphone or answer. There is no lock-screen answering or offline push.

The app uses SQLite, native recording and `qw-livekit`. Rebuild a native package or custom debugging base, then sign/install it with your own application identifiers and credentials; a wgt-only update cannot add native capabilities to an old package. Compilation and simulator tests do not establish target-device acceptance, and Android dependency licensing must be clarified before distribution. See [Mobile development](/core/mobile#聊天、语音与原生通话) (Chinese).

## Me

The **Me** tab:

![The Me tab on mobile](/screenshots/en-mobile-mine.webp)

* **Top**: avatar, display name, username, plus department and roles. Tap it to open **Profile**.
* **Profile**: you can change **Display name**, **Email** and **Gender**; **Username**, **Mobile**, **Department**, **Roles** and **Positions** are read-only. Change the mobile number on desktop. Tap **Avatar** to take a photo or choose one from the album; the server crops it to 256×256.
* **Change password**: enter the old password, the new password and the new password again; the rules follow the server's password policy. After the change, your sessions on other devices and browsers end immediately, while this phone stays signed in. The WeChat mini program link is removed too, so the next time you open the mini program you link it again.
* **New to-do WeChat alerts**: only in the WeChat mini program, and only when the conditions are met; see [New to-do WeChat alerts](#new-to-do-wechat-alerts).
* **Language** and **Appearance** (app and H5 only); see [Theme and language](#theme-and-language).
* **About**: logo, app name, version, introduction and license (MIT).
* **Sign out**: signs you out after you confirm "Sign out of this account?".
* The bottom line shows "Qiwu · Version x.y.z".

## Realtime push

While the mobile app is in the foreground, it keeps a realtime connection to the server, with the same rules as on desktop:

* When a new approval to-do or a new inbox message arrives, the badges and the numbers on the Workbench update at once.
* When an administrator forces you to sign out, you return to the sign-in page with "An administrator signed you out. Please sign in again."
* It connects when the app returns to the foreground or any bottom tab opens, and reads the to-do and unread counts once more. It disconnects when the app goes to the background, and on sign-in and sign-out.
* If it cannot connect (for example, the mini program has no allowed socket domain configured), it polls every 60 seconds while a bottom tab is showing, so the badges update within 60 seconds at most.

::: warning No system-level offline push
The connection closes as soon as the app goes to the background, so when the app is closed or in the background, nothing shows up in the phone's notification bar. New to-do reminders you can still receive then: email (a mail template for new to-dos is preset; a mail account must be configured and the employee must have an email address), SMS (add your own SMS template for new to-dos), and [New to-do WeChat alerts](#new-to-do-wechat-alerts) in the WeChat mini program. See [Message center · Which events send messages](/features/messaging#哪些事件会发消息) (Chinese).
:::

For connection details, see [Realtime push · Mobile](/features/realtime#移动端) (Chinese).

## New to-do WeChat alerts

In the WeChat mini program, when a new approval to-do arrives, the approver can be reminded with a WeChat **one-time subscribe message**: the reminder appears under "Service Notifications" in WeChat, and tapping it opens the approval detail. This feature is **off by default**.

* Each employee has to agree: on the **Me** page of the mini program, tap **New to-do WeChat alerts** and allow it in the WeChat pop-up. If allowed, it shows "On: your next new to-do will be sent to WeChat"; otherwise "WeChat alerts not enabled".
* **One tap covers only one future reminder**; tap again to keep receiving them.
* The item shows only in the WeChat mini program, and only when WeChat is linked, an administrator has turned on the switch, and a subscribe template is configured.

For how to enable it and configure the templates, see [Message center · WeChat subscribe messages](/features/messaging#微信订阅消息) (Chinese).

## App updates

Only the Android and iOS apps check for a new version, once at each start. H5 does not check; the WeChat mini program is updated by WeChat itself.

* When there is a new version, a prompt such as "Version 1.2.0 is available" appears, with the release notes as its body and the buttons **Update now** and **Later**. A forced update has no **Later**.
* **Resource package (hot update)** (updates only pages and scripts): downloaded inside the app, which shows "Downloading the update…" and restarts automatically after installing it.
* **Full package** (the complete installer): Android opens the download URL in the browser (an installer or an app store link); iOS opens the App Store.
* For a forced update, the prompt appears again if downloading or installing fails, if you close the prompt, or after you return from the browser or the store.
* If the check fails (for example, without a network), nothing is shown and the app works as usual.

New versions are registered in **System → App versions**; see [System management · App versions](/en/features/system#app-versions).

## Theme and language

![Workbench in the dark theme](/screenshots/en-mobile-dark.webp)

**Theme**: by default, it follows the phone's light or dark setting. In the app and H5, you can choose **System**, **Light** or **Dark** in **Me → Appearance**. It takes effect at once and is saved only on this phone. The WeChat mini program always follows the system and has no **Appearance** item.

**Language**: Simplified Chinese and English are supported.

* On first launch, the app uses English if the phone's system language is English, and Simplified Chinese otherwise. After that, it uses your last choice.
* Switching changes the interface text, the text inside components and the system dialogs (such as confirm boxes and pickers) together.
* Switching in **Me → Language** also saves the language to your account, so the messages and notifications the server sends you change too. Switching on the sign-in page only changes this phone.

For more, see [Internationalization](/en/features/i18n).

## What to configure in the admin console

Most mobile features work out of the box. The following need configuration by an administrator in the desktop admin console, or specific permissions:

| What you want | Where to configure it | Notes |
| --- | --- | --- |
| SMS sign-in | **System → Message center → SMS channels**, **SMS templates** | Shared with desktop; see [Sign-in and accounts · SMS sign-in](/features/login#短信登录) (Chinese) |
| Choosing the captcha type | **System → Parameters**: `captcha.mode` | Shared with desktop |
| WeChat mini program sign-in | `WX_MP_APPID` and `WX_MP_SECRET` on the server, plus **System → Parameters**: `auth.wx_mp.enabled` | Only the super administrator can change this switch; see [Sign-in and accounts · WeChat mini program sign-in](/features/login#微信小程序登录) (Chinese) |
| New to-do WeChat alerts | **System → Parameters**: `notify.wx_subscribe.enabled`, `notify.wx_subscribe.templates` | WeChat mini program sign-in must work first; see [Message center · WeChat subscribe messages](/features/messaging#微信订阅消息) (Chinese) |
| App update prompts | **System → App versions**, plus **System → Parameters**: `app.update.enabled`, `app.update.review_version` | See [System management · App versions](/en/features/system#app-versions) |
| Which processes can be started on the phone | **Approvals → Process admin → Process models** | Every published process you may start is listed; see [Workflow](/en/features/workflow) |
| **Leave** on the Workbench | **System → Roles**: the **Add** permission of leave requests (`biz.leave.create`) | People without it do not see this shortcut |
| Bulletins | **System → Message center → Bulletins** | See [Message center](/features/messaging) (Chinese) |
| Attachment size limit | **System → Parameters**: `storage.max_size_mb` | Shared with desktop. The mobile app reads it once at each start, so a change applies after the app is reopened |
| Forcing a phone to sign out | **Monitoring → Online users** | The row whose client shows "Phone" |
| Mobile pages for your own business modules | **Mobile pages** on the **Generation** tab of **System tools → Code generator** | See [Code generator · Mobile pages](/en/features/codegen#mobile-pages) |

::: tip What to prepare beyond the admin console
For the mini program and the app to reach the server, you also need: an HTTPS domain with an ICP filing (the registration required for websites hosted in mainland China), the server domains registered on the WeChat Official Accounts Platform, and the server address set at build time. These are development and release tasks; see [Mobile development · Release checklist](/core/mobile#发布清单) (Chinese).

Also, the code generator's 9 sample pages are registered in the mobile app. They have no entry point, but they ship with the mini program and the app, so remove them before your first release; see [Code generator · Mobile pages](/en/features/codegen#mobile-pages).
:::

## Desktop only

If you don't need the mobile app, deleting the whole `mobile/` directory is enough. A few root scripts and checks still mention it; they skip it automatically when the directory is missing, and you can delete those mentions too if you want a clean tree. The root lockfile needs no change, because the mobile app was never in it. After the deletion, the code generator no longer generates mobile pages. For the steps, see [Mobile development · Desktop only: deleting the mobile app](/core/mobile#只要电脑端-删除移动端) (Chinese).

## Developer guide

* [Mobile development](/core/mobile) (Chinese): running and debugging locally, building, the release checklist, deleting the mobile app
* [Pushing realtime messages in code · Mobile](/core/realtime#移动端-uni-app) (Chinese): how the server pushes and how the mobile app receives
* Related features: [Sign-in and accounts](/features/login) (Chinese), [Workflow](/en/features/workflow), [Message center](/features/messaging) (Chinese), [Realtime push](/features/realtime) (Chinese), [Code generator](/en/features/codegen), [System management](/en/features/system)
