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

求改善方法 #50

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

求改善方法 #50

wants to merge 2 commits into from

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.

4 participants