ali-ahnaf / ali-ahnaf/aust_travels
Add a cancel location sharing button in the notification bubble while user is sharing their location
Aberta
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
Avaliação
Esta issue ainda não foi avaliada.