iOS: push does not work, and calls lose audio in the background

Abierto
#116 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
12/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
firebase, github-actions, go, ios, react-native, typescript
Área
backend, ci-cd, mobile

Línea de trabajo

Start with notifications/deliver.go (splitTokens) to see how non-Expo tokens are routed to FCM, then the iOS config for UIBackgroundModes and the three profiles in eas.json, with build-android.yml as the CI reference. The push fix needs a decision between Firebase and direct APNs, and iOS builds need a paid Apple Developer account, so confirm that with a maintainer before writing code. Done means a real iOS device receives a push and keeps call audio in the background.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

ios mvp priority-high

Three separate iOS gaps, found by reading the config and the push path against
the server. None of them are visible on Android.

1. Push cannot work at all, and fails silently

getDevicePushTokenAsync() returns an APNs token on iOS. The server routes
any token that is not an Expo token to FCM (notifications/deliver.go,
splitTokens), and FCM's token field wants an FCM registration token, not a
raw APNs one. It is rejected, and the worker prunes it as invalid. No error
surfaces anywhere.

Two possible fixes:

  • Add @react-native-firebase/messaging so iOS also produces an FCM token, and
    upload an APNs key to Firebase; or
  • Send to APNs directly from the server and route by the stored platform
    column rather than by token shape.

Either way this needs a paid Apple Developer account ($99/yr) — APNs keys
cannot be created without one.

2. A call loses its audio when backgrounded

UIBackgroundModes was missing entirely. audio, voip and
remote-notification are declared as of #106, but this has never run on a
device — worth confirming as part of any iOS work.

3. There is no iOS build

All three eas.json profiles declare android only, and CI is
build-android.yml. Signing needs the same paid account.

Also worth knowing
  • An incoming call with the app closed has no path on iOS at all — that needs
    CallKit + PushKit, which is separate work again.
  • usesCleartextTraffic is Android-only, but there is not a single http://
    URL in the app, so ATS is not a problem.
Lenguaje dominante
TypeScript
Estrellas
9
Forks
3
Merge medio
1 d 15 h
PR fusionados (30 d)
48

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de CreadorLanda/yo

Todos los issues de CreadorLanda/yo

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.