iOSのバックグラウンド状態でできること

iOSのバックグラウンド状態でできることを簡易的にまとめる

Audio, Airplay, and Picture in Picture

音の再生・AirPlay(音楽を再生するなど)

Location updates

位置情報更新

https://qiita.com/SatoTakeshiX/items/a7039b9a1691d05d10da

  • significant-change location service

完全にアプリを閉じてる状態でも更新できる https://developers.cyberagent.co.jp/blog/archives/771/

Voice over IP

通話, VoIP用のプッシュ通知 VoIPプッシュは高優先度かつ遅延なく配送されるとみなされる https://qiita.com/mgkdev/items/303b9015fabca4eb7fb7

端末がロックした状態で着信に応答すると、CallKitの通話画面が表示されたままになります。この状態では、アプリ側の画面が表示されないためビデオが表示されません。ユーザーがロックを解除するとアプリの画面に切り替わります。 https://note.com/yorifuji/n/n1ae3ebde3943

External accessory communication

外部アクセサリ(Bluetooth機器など)と通信

Uses Bluetooth LE accessories

Central側の通信をバックグラウンドで継続 Bluetoothアクセサリとの通信

Acts as a Bluetooth accessories

Peripheral側の通信を行いたい場合 Bluetoothアクセサリとの通信 http://harumi.sakura.ne.jp/wordpress/2019/05/23/ios%E3%83%90%E3%83%83%E3%82%AF%E3%82%B0%E3%83%A9%E3%82%A6%E3%83%B3%E3%83%89%E3%81%A7%E9%95%B7%E6%99%82%E9%96%93ble%E9%80%9A%E4%BF%A1%E7%B6%9A%E3%81%91%E3%82%8B%E6%96%B9%E6%B3%95/

Background fetch

iOS7~ 最新ニュース記事を決まったエンドポイントから通信して取得する 電子書籍のページを同期するために通信する https://dev.classmethod.jp/references/ios-background-fetch/

Remote notifications

通知(Notification)の監視

Background processing, Background App Refresh Tasks

iOS13~

  • Background processing

(急を要しない)後々の実行で良いメンテナンス処理 Core MLを利用した機械学習のトレーニング処理 が数分間、処理実行が可能

  • Background App Refresh Tasks

30秒以内で完了できる処理 1日を通してアプリを最新に保つために必要な処理

https://grandbig.github.io/blog/2019/09/22/backgroundtasks/