LoginSignup
4
2

More than 3 years have passed since last update.

【iOS 14】正確な位置情報をOFF時にはジオフェンスが無効となる

Last updated at Posted at 2020-09-01

本記事は公開情報を元に書いております。

おおよその位置情報

新しい設定により、正確な位置情報の代わりに、あなたのおおよその現在位置をアプリと共有するオプションを選べます。

参照:iOS 14で登場する新機能
位置情報がユーザーの権限設定で、正確な位置情報を提供するかおおよその位置情報を提供するか選択できるようになるようです。

accuracyAuthorizationの追加

CLLocationManagerにaccuracyAuthorizationというプロパティが追加されます。.fullAccuracy.reducedAccuracyの値が入る可能性があります。

If the value of this property is CLAccuracyAuthorization.fullAccuracy, you can set the desiredAccuracy property to any value. If the value is CLAccuracyAuthorization.reducedAccuracy, setting desiredAccuracy to a value other than kCLLocationAccuracyReduced has no effect on the location information, and your app can’t use region monitoring or beacon ranging.

上記は公式ドキュメントの引用ですが、 .fullAccuracyが設定されている場合は位置情報の精度を自由に設定できるが、. reducedAccuracyが設定されている場合はkCLLocationAccuracyReduced以外の値は無効になり、region monitorning(ジオフェンス)とbeacon ranging(ビーコン検知)ができなくなるようです。

またWWDCの動画をみると全体的に位置情報周りの変更がわかります

4
2
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
4
2