Guest mode. You can read posts without signing up. Comments, ratings, job contacts and your own posts open after you sign up and accept the rules. What is Kommit →

Reset
Редакция КоммитРедакция портала
commit 4b308c1 · 15 days ago

🌐 Machine-translated from Russian. Show original

In this part:

Developer accounts

Google Play ConsoleApple Developer Program
CostUS$25 once99 USD per year (local currency may vary)
Typepersonal or organizationindividual 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 verificationan identity document and a bank card in the owner's nameApple 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
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit 5413ad2 · 15 days ago

🌐 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
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit 64a9ecb · 15 days ago

🌐 Machine-translated from Russian. Show original

In this part:

How delivery is arranged

Ваш сервер ──► Expo Push API ──► FCM (Android) / APNs (iOS) ──► телефон
     ▲                                                              │
     └──────────── приложение регистрирует Expo push-токен ◄────────┘
  1. The app requests permission and receives an Expo push token in the form ExponentPushToken[...].
  2. Sends the token to your server (POST /api/m/push).
  3. 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
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit 03189ee · 15 days ago

🌐 Machine-translated from Russian. Show original

In this part:

Principles

  1. One API client for the entire application: headers, token, errors — all in one place.
  2. Clear errors to the user: "No connection to the server," not TypeError: Network request failed.
  3. Real-time, only while the app is open; push notifications in the background (part 4).
  4. After the connection loss — reread the data: messages may have arrived during the interruption.

API client

Read more
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit 9460d2d · 15 days ago

🌐 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
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit 0b1999a · 15 days ago

🌐 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

ApproachLanguageProsCons
NativelyKotlin (Android), Swift (iOS),maximum performance, all new platform APIstwo codes, two commands, twice as expensive
FlutterDarta single codebase, its own rendering, predictable UI,a new language for the web team, a separate ecosystem,
React Native + ExpoTypeScript/JavaScript, Reactone codebase, familiar with React, common logic with the web, cloud build,complex native functionality requires modules; application size larger than native
PWA (web app)webzero storesiOS 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
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up