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

Notifications cleanup #3

Merged
merged 4 commits into from
Jul 23, 2020
Merged

Notifications cleanup #3

merged 4 commits into from
Jul 23, 2020

Conversation

tindn
Copy link
Collaborator

@tindn tindn commented Jul 17, 2020

Part of the solution proposed in this issue Path-Check/safeplaces-dct-app#1276

  • Comment out notification channel registration for sync service.
  • Updated the notification channel names for permission and background service.
  • The updated names should be coming from the covid-safe-paths project, however, we also added the fallback names in this package just in case. These names are generic and not project specific.

Copy link

@JacobJaffe JacobJaffe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks for documenting comments

@@ -120,6 +124,7 @@ public static void registerSyncChannel(Context context) {
public static NotificationChannel createServiceChannel(CharSequence name) {
NotificationChannel channel = new NotificationChannel(SERVICE_CHANNEL_ID, name, android.app.NotificationManager.IMPORTANCE_LOW);
channel.enableVibration(false);
channel.setShowBadge(false); // avoid badge count due to background service notification

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@juancruzgs
Copy link
Collaborator

Added a new commit to remove the permissions channel since it's not being used.
No more changes needed in this repository, can I merge this PR @JacobJaffe?

@juancruzgs
Copy link
Collaborator

How to test:

1- Clone locally https://github.com/Path-Check/react-native-background-geolocation
2- Run these commands in your local copy to point to this branch

git config --file=.gitmodules submodule.android-common.branch notifications-cleanup
git submodule update --init --recursive --remote

3- Change this line in https://github.com/Path-Check/covid-safe-paths/blob/develop/package.json to use the local dependency
"@mauron85/react-native-background-geolocation": "file:../react-native-background-geolocation"

Copy link

@JacobJaffe JacobJaffe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, LGTM!

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

Successfully merging this pull request may close these issues.

3 participants