capacitor-community / background-geolocation

A Capacitor plugin that sends you geolocation updates, even while the app is in the background.
MIT License
177 stars 54 forks source link

Update Notification Body Text #111

Open alexandermccormick opened 6 months ago

alexandermccormick commented 6 months ago

Is your feature request related to a problem? Please describe. Nope, no problems. This is purely a "nice to have" feature.

Describe the solution you'd like I'd like to be able to update the body text of the foreground service notification from within the background watcher callback.

Describe alternatives you've considered The closest alternative I could find is #51, but I don't need anything fancier than just updating the body text that is already there.

Additional context I'm mostly creating this issue to inquire if this is even possible on both Android and iOS, and to see if this feature aligns with this project's scope. If so, I'd love to help get this implemented.

diachedelic commented 5 months ago

iOS does not show a notification, so this would only be relevant for Android. If you can find a way to update the notification text dynamically, I will consider including this feature.

alexandermccormick commented 5 months ago

Sounds good, I'll play around with it. Thank you!