Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Background URLSessions support

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
swift

調査の方向性

Start by reading the existing OpenAI class and the app's AppDelegate, then review the linked URLSessionDelegate documentation and AWSS3TransferUtility example. The issue calls for background URLSession transfers managed through delegates rather than closures; done means calls can continue when the app is suspended and their original tasks can be completed when the app resumes.

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

説明

Is your feature request related to a problem? Please describe.
If the app gets suspended or terminated, the URLSession cannot continue.

Describe the solution you'd like
Either the OpenAI class itself or some other class that would take the responsibility of making the calls would have to be a subclass of NSObject and implement the URLSessionDelegate protocol, then there would have to be a way to register these delegates, associate them with individual calls, and have a way for the AppDelegate to bring them to life and finish the original task even after the app was suspended.
https://developer.apple.com/documentation/foundation/urlsessiondelegate/1617185-urlsessiondidfinishevents

We can model this on the AWSS3TransferUtility:
https://github.com/aws-amplify/aws-sdk-ios/blob/main/AWSS3/AWSS3TransferUtility.m

Describe alternatives you've considered
Not sure if we have an alternative. The main issue is that the background sessions do not support closures so we have to use URLSession delegates.

Additional context
This is about robustness of the system - low connectivity and people leaving the app. Imagine you have to transcribe 1 GB audio file. Even if you split it to smaller parts, you still need to upload them somehow if the user goes to the background. I don't think real users will have the patience to look at a progress bar for 10 minutes or however long it will take.

主要言語
Swift
スター
2.9k
フォーク
519
平均マージ
4日 9時間
マージ済み PR(30日)
13

環境構築

はじめの一歩

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

MacPaw/OpenAI のほかの issue

MacPaw/OpenAI の issue をすべて見る

似ている issue

Swift の issue をもっと見る

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

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