Baseflow / flutter-geolocator

Android and iOS Geolocation plugin for Flutter
https://baseflow.com/
MIT License
1.24k stars 645 forks source link

Reuse existing Notification for Android Foreground Service #1200

Open JulianBissekkou opened 1 year ago

JulianBissekkou commented 1 year ago

🚀 Feature Requests

It would be nice if we are able to reuse an existing notification instead of creating a new one.

Contextualize the feature

Let's say you have multiple ForegroundServices in your Flutter App and you want to show a single notification for all of those services. You can take care of creating the notification by yourself and then pass this notification to this (and maybe other) plugin(s) and don't spam the user with notifications.

Describe the feature

Add the option to pass a notificationId to the positionStream instead of creating a new one. Error handling needs to be done in case the notification or the channel doesn't exist.

Platforms affected (mark all that apply)

JulianBissekkou commented 1 year ago

Linked PR that implements this feature: https://github.com/Baseflow/flutter-geolocator/pull/1201

JeroenWeener commented 12 months ago

Hi @JulianBissekkou, thank you for opening an issue and creating a PR. We love to see contributions to the plugin!

You mention in the PR that you are going to make some adjustments. Could you give us an update of your status? Is this still on your radar, or would you like us to take over?