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.
1. Cut the release branch
Section titled “1. Cut the release branch”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.
git switch -c release/1.0.0git push -u origin release/1.0.0After pushing, the developer opens the Pipelines page in GitLab, watches it to the end, and reports the pipeline result every time.
2. Check that the te deploy passed
Section titled “2. Check that the te deploy passed”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.
curl -fsS https://api-te.ricesense.com/health/liveIf there is a database migration, always run and check it on te first.
3. Test on te
Section titled “3. Test on te”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.
eas build --profile te --platform ios # ad-hoc IPA, installs on registered iPhoneseas build --profile te --platform android # APK, installs directly from a linkAn 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.
4. Deploy pd
Section titled “4. Deploy pd”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.
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
WhyThe system owner clicks it personally, one deploy at a time, and only after testing on te has passed
deploy_te
The job that deploys to te. It runs on its own every time the release branch is pushed
WhyIt must have a green check mark before you go on to click deploy_pd
5. Check pd after the deploy
Section titled “5. Check pd after the deploy”The developer checks that the pd API returns 200.
curl -fsS https://api.ricesense.com/health/liveThe 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.
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.
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
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
Demo account environment
The demo account must be in the same environment the build submitted for review points at
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.
Check before moving on
Section titled “Check before moving on”- The release branch pipeline passed and the
tevariant has been tested - pd is deployed and
https://api.ricesense.com/health/livereturns 200 - Every feature works on pd, with no “not available yet” screens
https://ricesense.com/privacyandhttps://ricesense.com/supportload 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