capacitor-community / background-geolocation

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

More informative notification. #51

Open josuelmm opened 2 years ago

josuelmm commented 2 years ago

Good day, thanks for your work I have a query, Is possible modify the static notification so that it shows more information when the service is running.

It's like adding this option in the notification:

There is a plugin that does it, but it is very old. https://www.npmjs.com/package/capacitor-persistent-notification

diachedelic commented 2 years ago

It seems possible on Android, but you will have to modify BackgroundGeolocation.java. The Location object arrives here, and the Notification is configured here.

josuelmm commented 2 years ago

Thank you, I'll review it and tell you how it goes, it would be very interesting to be able to enable those options.

asiermusa commented 2 years ago

Did you achieve that feature @josuelmm? Thanks!