Skip to content
commcare nova

Where workers use your app

Choose whether your app runs in Web Apps, on Android or both, and see what each choice offers.

A CommCare app can run in two places: in Web Apps, the browser app on CommCare HQ, and in the CommCare app on Android phones and tablets. Most of what you build works the same in both. A few features run in only one of them, so each app says where its workers use it, and Nova offers what runs there.

The three choices

Open App settings and choose under Where workers use this app:

  • Web Apps and Android: in a browser on CommCare HQ, and in the CommCare app on phones and tablets. A new app starts here.
  • Web Apps only: in a browser on CommCare HQ.
  • Android only: in the CommCare app on phones and tablets.

Each choice decides which features Nova offers. Choosing one platform offers the features only that platform runs. Adding a platform back checks the app first: if something in it can't run on the platform you're adding, Nova lists each question, setting and file that stands in the way, with a way to open each one, and keeps the app where it is until they change.

A CommCare Connect app runs on Android only, because Connect workers sign in only in the Connect app on Android. Nova sets that when you turn on Connect; see CommCare Connect.

Where the app runs also reaches CommCare HQ. Each publish sets the app's Web App setting from it, and an app that runs in Web Apps only has no CommCare mobile app file (CCZ). See Publishing to CommCare HQ.

What each choice offers

In an app that runs on both, the builder shows each feature that only one platform runs as a choice you can't pick yet, with the reason beside it. Choosing that platform in App settings offers it.

These run in Web Apps and not on Android:

  • Forms read the search, where each form of a menu runs the search again as it opens, and the registration form such a menu offers when a search finds nothing. On Android a worker can open only a case the phone already holds.
  • Several cases, choosing more than one case for one form. On Android the menu stops at the home screen, so a worker can't reach the form.
  • Single-date and multiple-choice Search fields. Android doesn't show them, so a search runs without them. A date range field, a checkboxes field and a single-choice field run on both.
  • The window width, the width of the worker's browser window. Android has no window width, so a screen that reads it can't open there.

These run on Android and not in Web Apps:

  • Date and time questions. Web Apps has no way to answer one. You can ask for the date and the time as two questions instead (below).
  • Where you are now, here(), in a Results or Details value. Web Apps never shares where the worker is with a case list.
  • The case list search text, what the worker typed in a case list's search box. Web Apps keeps no search text, so it always reads blank there.
  • CommCare Connect.
  • Case list first, for a menu that searches. In Web Apps a menu that searches opens on its Search screen or on its results.

Some media files play in only one place too: ICO and AVIF images play only in Web Apps, and AAC, AMR and MIDI audio, MP4 with HEVC or MPEG-4 Part 2 video and MKV play only on Android. An app takes a file only where it plays on every platform the app runs on, and the media pickers say which files this app can't use. See Building with Nova.

Other features run on both and behave a little differently on each, such as a location question, which places a point on a map in Web Apps and records the device's location on Android. A phone number question takes digits, with an optional + or - in front and an optional decimal part, in Web Apps, and on Android offers a keypad that also has a space and a dash, where a + or - only starts the answer. A help text set to show as typed still shows its formatting in Web Apps. A question's QR code, spoken text and inline video show only on Android: the inline video takes the place of the QR code and the question's image, the QR code takes the place of the image, and the speaker button shows only where the question has no audio. An icon or a spoken label on a case list's Register button shows on Android, and in Web Apps the button shows its text only. A name in Sort by for an item hidden from Results shows in the Sort by menu on Android, and in Web Apps only for a list laid out as tiles. A menu set to Search first or Results first opens on its case list on Android. After a form, Android runs every destination that applies, in order, and Web Apps opens only the first. The builder notes each difference where you set it up, for the platforms your app runs on, and Preview can run your app the way each platform does.

Asking for a date and a time in Web Apps

In an app that runs in Web Apps, the question picker offers Date and time (as two questions). It adds a date question and a time question, and a hidden value joins the two answers into one date and time. Both questions use the same label, and you can give each its own.

A date-and-time question you already have can become the same shape: choose Ask for the date and the time separately in its actions menu. Nova adds the two questions just before it, and a hidden value joins the two answers, so everything that read the question reads the same date and time. When a date-and-time question keeps an app from running in Web Apps, the list Nova shows in App settings offers the same choice beside it. Asking for a date and a time separately says what changes for your workers and your data.

Getting an answer from another Android app

An Android worker can open another app from a question and bring the answer back to the form. For example, a meter can return a reading and a file with the measurement. In App settings, choose Android as the place workers use the app. The meter app also needs to be installed on each worker’s device.

In a text question’s Data settings, Answer from an Android app lets you choose Area Mapper, Breath Counter, Simprints Enrolment, or enter the action ID the other app supplies. Values sent to the app gives each input a name and an expression, such as the unit from an earlier question. Answers returned to the form lets a named result fill one or several questions. An integer question stores a number and a file question stores a copy of the returned file. In a repeat, the results belong to the worker’s current row.

A second question can use the first question’s Android app. The app receives the current answer of the question the worker opened. When the worker returns, that question gets the main answer. A completed return with no main answer clears it. A named result the other app leaves out keeps its previous answer. Cancelling keeps all previous answers.

When you bring an app in from HQ, Nova keeps repeated input names and Android sends the last value for each name. If Nova cannot connect a returned value to a question, you can open the app question in HQ, choose its result question, save the form and read the changes again. A standalone action needs the question ID that HQ's form editor uses for it.

In Android Preview, Open Android app shows the values the other app would receive. You can enter its answer, choose a local file for a file result, or try an identity or Simprints result. Return to form applies those values. Cancel lets you return to the form with the answers you already had.

If two different result names fill one question and both come back, the value that stays can depend on the Android version or on whether the phone loaded a cached form. Preview uses a freshly loaded form on Android 15. Giving each result its own question keeps both answers.