Skip to content

Backend and demo account

Apple and Google reviewers use the app against the real production API and open the privacy and support pages from the store links. At the end of this page the backend is on pd and tested, the privacy and support pages load on the company domain, and there is a demo account with sample data for the reviewers. Finish this page before the pd build on either platform. Before you start you need: a project set up as in Set up the Expo project, and backend CI that can deploy te and pd.

The developer cuts a release/x.y.z branch from the main branch, for example release/1.0.0. Before pushing, run the repo’s checks (lint, test, typecheck) until they pass.

Terminal window
git switch -c release/1.0.0
git push -u origin release/1.0.0

After pushing, the developer opens the Pipelines page in GitLab, watches it to the end, and reports the pipeline result every time.

Once the release branch is pushed, CI builds and deploys to te on its own (job deploy_te). The developer checks that the job has a green check mark, then checks the te API.

Terminal window
curl -fsS https://api-te.ricesense.com/health/live

If there is a database migration, always run and check it on te first.

The Expo project owner builds the te variant with the command for the platform to be tested, then the developer installs it and tests every feature against the data on te.

Terminal window
eas build --profile te --platform ios # ad-hoc IPA, installs on registered iPhones
eas build --profile te --platform android # APK, installs directly from a link

An ad-hoc iOS build needs an Apple Developer account, an API key and a registered iPhone, and uses the EXPO_ASC_* variables in front of the command just like the pd build (how is in iOS extras). If you do not have those yet, test te with the Android APK first.

Testing rule: verify data or backend fixes against a server (dv or te), not a local database. For app bugs, run the app locally but point it at server data.

When testing on te passes, the developer tells the system owner. The system owner opens the release branch’s Pipelines page in GitLab → clicks the circle of the deploy stage → clicks ▶ on the deploy_pd job.

The release/1.0.0 pipeline: deploy_te passed on its own, deploy_pd waits to be clickedGitLab · 17 Nov 2026
GitLab Pipelines page for branch release/1.0.0 with status Passed, the deploy stage open, deploy_pd waiting to be run manually and deploy_te already passed
1

deploy_pd

The job that deploys to production. It is set to manual, so it has a ▶ button and does not run on its own

  • Click ▶Our choiceDeploys this commit's image to pd right away. Real users get the change
  • Do not clickpd stays on the old version. The pipeline still counts as passed

WhyThe system owner clicks it personally, one deploy at a time, and only after testing on te has passed

2

deploy_te

The job that deploys to te. It runs on its own every time the release branch is pushed

  • ↻ button (retry)Deploys te again with the same image. Use it when the job failed for a temporary reason

WhyIt must have a green check mark before you go on to click deploy_pd

The developer checks that the pd API returns 200.

Terminal window
curl -fsS https://api.ricesense.com/health/live

The new API must also support older app versions that users have not updated yet. Never change a response in a way that breaks the previous app version.

6. Publish the Privacy Policy and Support pages on the company domain

Section titled “6. Publish the Privacy Policy and Support pages on the company domain”

Both stores require a Privacy Policy URL, and Apple requires a Support URL. Legal approves the final privacy page content (not a draft), then the developer publishes both pages on the company domain. Both pages must load without logging in.

Page URL used in the stores Used in
Privacy Policy https://ricesense.com/privacy (English: /en/privacy) App Store Connect and Google Play Console
Support https://ricesense.com/support (English: /en/support) Support URL in App Store Connect
Website https://ricesense.com Marketing URL in App Store Connect
Privacy email A shared company address, not a personal one Google Play shows it publicly

The privacy page must say what data is collected, what it is used for, how long it is kept, who to contact, and how to request deletion. It must have an effective date.

ricesense.com/privacy, the version approved by legal, with an effective datericesense.com · 23 Nov 2026
RiceSense privacy notice at ricesense.com/privacy, version 1.0, effective from 16 November 2569 (Thai Buddhist year, 2026)

The support page must have real contact channels and a data deletion section that can be linked directly, for example https://ricesense.com/en/support#support-data.

ricesense.com/supportricesense.com · 23 Nov 2026
RiceSense app help page at ricesense.com/support with contact channels, getting started and frequently asked questions

How to request account deletion

Apple requires apps where users can create their own accounts to offer account deletion in the app (guideline 5.1.1(v)). Google asks about this in the Data safety form

  • Request deletion by email, as described on the privacy and support pagesOur choiceWorks for apps where the company issues the accounts, and must be explained in the notes to the reviewer
  • A delete account button in the appRequired when the app lets people sign up themselves

WhyRiceSense has no sign-up screen. Accounts are issued by the company

Enter the URLs in the store consoles only once both pages load, because the Privacy Policy URL in App Store Connect is tied to the version submitted for review.

7. Create a demo account for the reviewers in pd

Section titled “7. Create a demo account for the reviewers in pd”

An app that requires login must have an account for the reviewers. If they cannot log in or see empty screens, the app is rejected (Apple guideline 2.1). The developer creates a demo farmer account in pd through the admin web app, after the system owner allows it, because this is data in the live system. Then add sample data so every screen in the app has something to show.

  • 1 rice field with 3 water pipes
  • 1 growing season with status in progress
  • 2 water level records and 1 fertilizer record
The demo account's field: 3 water pipes and 1 seasonRiceSense admin web app (pd) · 19 Nov 2026
RiceSense admin web app, field page of the demo account: the field's water pipes list shows pipes 1 to 3 ready to receive data, and the growing seasons list shows Khao Dawk Mali 105 in progress
The demo account's 3 sample recordsRiceSense admin web app (pd) · 19 Nov 2026
RiceSense admin web app, record history page with 3 entries: chemical fertilizer 25 kg/rai and water levels for pipes 1 and 2, recorded by RiceSense Admin

Demo account environment

The demo account must be in the same environment the build submitted for review points at

  • pdOur choiceThe reviewer can log in to the pd build and sees the sample data
  • dv or teCannot log in to the pd build, because the account is in a different database

WhyThe build submitted for review is always pd

Sample data

Data that gives every screen in the app something to show

We enteredField, water pipes, season, water level records and fertilizer record

WhyReal water levels come from IoT devices in the field. Reviewers have no device, so an admin enters the values instead, marked as sample data. Never use the names or data of real farmers

The demo account password is entered in each store’s console by the Apple account holder and the Google Play account owner themselves. It must never be in git, documents or chat. Before every review submission, the developer logs in with this account in the pd build and opens all the main screens of the app.

  • The release branch pipeline passed and the te variant has been tested
  • pd is deployed and https://api.ricesense.com/health/live returns 200
  • Every feature works on pd, with no “not available yet” screens
  • https://ricesense.com/privacy and https://ricesense.com/support load without logging in and are not drafts
  • The demo account in pd can log in and shows sample data on every screen

Next: Store information