Skip to content
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

Channel customization for service channel #20

Open
knvpk opened this issue Nov 1, 2018 · 2 comments
Open

Channel customization for service channel #20

knvpk opened this issue Nov 1, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@knvpk
Copy link

knvpk commented Nov 1, 2018

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.

@mauron85
Copy link
Owner

mauron85 commented Nov 1, 2018

Yes why not. Feel free to submit PR

@mauron85 mauron85 added the enhancement New feature or request label Nov 4, 2018
@Sulorb
Copy link

Sulorb commented May 29, 2020

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

notif


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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants