LoginSignup
23
22

More than 5 years have passed since last update.

永続的なWi-Fi接続が必要ならばその旨を宣言する。

Posted at

サーバーと通信するiOSアプリを書くときには、「iOSアプリケーション プログラミングガイド」の中の次の記載を参考にして、Info.plistの設定を行うと良さそう。

ネットワークを介してサーバとやり取りするアプリケーションは、プロジェクトの「Info」タブに「Application uses Wi-Fi」エントリを追加するとよいでしょう。これはUIRequiresPersistentWiFi キー( Info.plist ファイル)に対応します。YESと設定すれば、Wi-Fi接続が長時間にわたって非アクティブな状態であっても、iOSにより自動的に切断されてしまうことはなくなります。ネットワーク経由でサーバと通信するアプリケーションには、ぜひこのキーを追加してください。

23
22
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
23
22