Skip to content

Conversation

@SatohAyaka
Copy link
Collaborator

No description provided.

@harutiro
Copy link
Member

おそらく、ForeGroundServiceを利用としているけど、全く動かないとかエラーになっている感じだと思います。

Foregroundで動かすためには、通知を出すこと、Manifestの登録をする必要があるので、そこが抜けていそうです。

もしかしたら梶健の記事が役に立つかもです。
https://kjlb.esa.io/posts/2335

Comment on lines +40 to +45
// サービスの起動
val serviceIntent = Intent(this, LocationService::class.java)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
startForegroundService(serviceIntent)
} else {
startService(serviceIntent)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

servicoIntentの綴りが違います

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants