Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

位置情報を取得できない #176

Open
seibe opened this issue Dec 6, 2020 · 2 comments
Open

位置情報を取得できない #176

seibe opened this issue Dec 6, 2020 · 2 comments

Comments

@seibe
Copy link
Member

seibe commented Dec 6, 2020

Android API level 29 以降で、位置情報を取得できない

この辺りの対応が必要
https://developer.android.com/training/location/permissions?hl=ja

@seibe
Copy link
Member Author

seibe commented Dec 6, 2020

  • RuntimePermission 周りを対応したとしても、Unity の Location API が対応していないので、ネイティブプラグインを書かない限りは本質的な解決は無理
  • API level 28 をターゲットにビルドすることで回避できるはずだが、Unity が SDK version 28 を取得してくれないので、完全手動となるから学生に案内するのは無理

@seibe
Copy link
Member Author

seibe commented Dec 6, 2020

Unity の Location API が対応していない

正確に書くと「ACCESS_FINE_LOCATION で実行時権限『アプリ起動中のみ位置情報を許可する』を取得した状態で LocationService.Start を呼び出しても、LocationService.status が常に Stopped を返し、位置情報を取得できない」

@seibe seibe closed this as completed Dec 13, 2020
@seibe seibe reopened this Dec 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant