ali-ahnaf / ali-ahnaf/aust_travels

Add a cancel location sharing button in the notification bubble while user is sharing their location

Aberta
#135 0 comentários 0 reações 0 responsáveis Ver no GitHub
enhancement help wanted
Linguagem predominante
Kotlin
Estrelas
9
Forks
5
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

There already exists a button which when clicked, cancels location sharing. But the cancellation should be handled properly and `stopLocationSharing()` method must be called from there so that the data is saved to firebase.
```kotlin
val cancelIntent = Intent(this, ForegroundOnlyLocationService::class.java)
cancelIntent.putExtra(EXTRA_CANCEL_LOCATION_TRACKING_FROM_NOTIFICATION, true)

val servicePendingIntent = PendingIntent.getService(
this, 0, cancelIntent, PendingIntent.FLAG_UPDATE_CURRENT
)
```

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.