Skip to content

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

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

Open
ali-ahnaf opened this issue Dec 4, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ali-ahnaf
Copy link
Owner

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.

        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
        )
@ali-ahnaf ali-ahnaf added enhancement New feature or request help wanted Extra attention is needed labels Dec 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant