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

オープン
#116 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
firebase, github-actions, go, ios, react-native, typescript
領域
backend, ci-cd, mobile

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
TypeScript
スター
9
フォーク
3
平均マージ
1日 15時間
マージ済み PR(30日)
48

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CreadorLanda/yo のほかの issue

CreadorLanda/yo の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。