
🌐 Machine-translated from Russian. Show original
In this part:
Developer accounts
| Google Play Console | Apple Developer Program |
|---|
| Cost | US$25 once | 99 USD per year (local currency may vary) |
| Type | personal or organization | individual or organization |
| For the organization, | organization verification, D-U-N-S ** | D-U-N-S number**, website on the company domain, work email on the same domain, |
| Identity verification | an identity document and a bank card in the owner's name | Apple ID with two-factor |
💡 Register your account with an organization, not an employee: the app belongs to the account owner. A developer with a personal account quits — transferring the app takes a long time and is not always possible. The D-U-N-S number is provided for free, but it takes time — start early.
Prices and policies change periodically — please check the registration pages of Google Play Console and Apple Developer before paying.
Google Play: the path to publishing
1. Closed testing for personal accounts
If the account is personal and created after November 13, 2023, Google requires a closed test before going into production : at least 12 testers signed continuously for at least 14 days. Only after this can you apply for access to the production. This requirement does not apply to organizational accounts.
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Installing the EAS CLI and logging in
npm install --global eas-cli
eas login
eas whoami
You can also use it without a global installation: npx eas-cli@latest build ... — that's how you always get the latest version.
One project expo.dev per app
Our most expensive mistake at the start: building the app in the wrong project expo.dev. The project stores:
- Android signature key (keystore) and iOS certificates;
- push keys (FCM V1, APNs) — and push tokens are tied to
projectId;
- build history and version numbers;
- EAS Update channels.
If you accidentally build Kommit Chat" in a WorkTime project, you get an APK signed with someone else's key, with someone else's push keys. The team has several apps, each with its own project: Kommit Chat" — only in ITgovChatApp, WorkTime — only in theirs.
Linking a project to an existing expo.dev project by ID (Project settings → ID):
eas init --id <ID проекта>
The command writes the extra.eas.projectId to the app.json. Our build script checks that the projectId in the app.json matches the expected one and stops if not. Tip: write the project ID in the app's README.
eas.json: profiles
Read more
🌐 Machine-translated from Russian. Show original
In this part:
How delivery is arranged
Ваш сервер ──► Expo Push API ──► FCM (Android) / APNs (iOS) ──► телефон
▲ │
└──────────── приложение регистрирует Expo push-токен ◄────────┘
- The app requests permission and receives an Expo push token in the form
ExponentPushToken[...].
- Sends the token to your server (
POST /api/m/push).
- The server sends a request to the Expo Push API during the event, and Expo forwards it to Firebase Cloud Messaging or the Apple Push Notification service.
Plus Expo Push — one API and one token format for both platforms. FCM and APNs keys are stored in EAS, not in your code.
Step 1. Module and plugin
npx expo install expo-notifications expo-constants
"plugins": [
["expo-notifications", { "icon": "./assets/notification-icon.png", "color": "#2347B5" }]
]
The notification icon on Android is a white silhouette on a transparent background (PNG), and the colored image will turn into a white square.
Step 2. Android: FCM V1
Without this, the app works, but the Android token is not issued.
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Principles
- One API client for the entire application: headers, token, errors — all in one place.
- Clear errors to the user: "No connection to the server," not
TypeError: Network request failed.
- Real-time, only while the app is open; push notifications in the background (part 4).
- After the connection loss — reread the data: messages may have arrived during the interruption.
API client
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Creating a project
npx create-expo-app@latest my-app
cd my-app
npx expo start
The default template already includes TypeScript and expo-router. Set SDK modules with the command npx expo install, not npm install — it will select the version compatible with your SDK:
npx expo install expo-secure-store expo-constants expo-notifications expo-image
Before building and after updates, run a project validation:
npx expo-doctor@latest
Structure of the Kommit Chat"
src/
app/ ← экраны (каждый файл — маршрут)
_layout.tsx ← корневой навигатор, сессия, поток событий
sign-in.tsx ← вход
index.tsx ← список диалогов
chat/[id].tsx ← переписка (динамический параметр id)
new.tsx ← новый диалог
report.tsx ← жалоба (модальное окно)
settings.tsx
delete-account.tsx
components/ ← общие элементы интерфейса
lib/
api.ts ← клиент API и хранение токена
session.tsx ← контекст сессии
stream.ts, sse.ts ← реальное время
push.ts ← уведомления
app.json ← конфигурация Expo и плагинов
eas.json ← профили сборки
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Task
The portal itgov.kz has a Next.js site with private messages. Users asked the app to open correspondence faster and receive notifications. Resources is a small team of web developers, without separate Android and iOS engineers. One app for both platforms was needed, written by the same people who create the site.
That's how Kommit Chat" and, previously, the "WorkTime" app for tracking working time appeared. Both appeared at Expo.
Variants
| Approach | Language | Pros | Cons |
|---|
| Natively | Kotlin (Android), Swift (iOS), | maximum performance, all new platform APIs | two codes, two commands, twice as expensive |
| Flutter | Dart | a single codebase, its own rendering, predictable UI, | a new language for the web team, a separate ecosystem, |
| React Native + Expo | TypeScript/JavaScript, React | one codebase, familiar with React, common logic with the web, cloud build, | complex native functionality requires modules; application size larger than native |
| PWA (web app) | web | zero stores | iOS limitations, worse push, no "real" app in the |
What is Expo
React Native is Meta's framework: you write in React, and on the screen are true native Android and iOS components.
Expo is a platform on top of React Native:
Read more