background-geolocation-android
background-geolocation-android copied to clipboard
Channel customization for service channel
According to this line the name of the channel is set to App name. But it should be configurable by developer to show like "Tracking Location" or something else he needed.
Although it is coming from strings xml sheet, but this value effect the Account name and lable, so i think we need to use different string value like @strings\service_channel_name
so that developer can customize. If needed we can also keep another varibale for description as well. @strings\service_channel_description
.
But the name and description for Sync channel is enough as you coded.
Yes why not. Feel free to submit PR
EDIT WITH SOLUTION : After all the afternoon looking for a solution, I succeeded to change the channel name of the tracking persistent notification by changing a line in the [APP_FOLDER]\platforms\android\app\src\main\java\com\marianhello\bgloc\sync\NotificationHelper.java file.
You can modify line 102
String appName = ResourceResolver.newInstance(context).getString(("app_name"));
To
String appName = "Whatever you want to show";
So your users will know exactly what channel notification deactivate
Sorry to dig up this topic, is there a way to do it now ?
The other plugin of background geolocation permits it and explains how to do it here : https://github.com/transistorsoft/cordova-background-geolocation-lt/wiki/Android-Custom-Notification-Layout
But I think the other plugin is 450$ and I can't afford it.