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

chore: code comment for cancelling fcm notifications on android #176

Conversation

helenaford
Copy link
Member

@helenaford helenaford commented Oct 3, 2021

Add more details why we parse 0 as an integer when cancelling a notification with id of "0" and remove unused method cancelNotification in NotificationManager.java

…emove unsued method `cancelNotification` in `NotificationManager.java`
@codecov
Copy link

codecov bot commented Oct 3, 2021

Codecov Report

❗ No coverage uploaded for pull request base (master@526e4d4). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #176   +/-   ##
=========================================
  Coverage          ?   78.62%           
=========================================
  Files             ?       29           
  Lines             ?     1529           
  Branches          ?      496           
=========================================
  Hits              ?     1202           
  Misses            ?      327           
  Partials          ?        0           

@@ -410,31 +410,6 @@
.continueWith(CACHED_THREAD_POOL, fullScreenActionContinuation);
}

static Task<Void> cancelNotification(
Copy link
Member

Choose a reason for hiding this comment

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

Is this being removed right? 😅

Copy link
Member

Choose a reason for hiding this comment

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

Guessing so based on updated description 😀 so ignore me haha, just curious why this API was removed

Copy link
Member Author

@helenaford helenaford Oct 3, 2021

Choose a reason for hiding this comment

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

yea 😅 I just noticed it wasn't removed. it snuck in again somehow 🙈

Edit: deeper explanation: it basically was to make it easier to maintain all the cancel methods that accepted id(s) on android e.g. cancelAllNotifications([ids]) and cancelNotification(id) (https://github.com/invertase/notifee/pull/119/files) so there's one common method on android cancelAllNotificationsWithIds. Eventually, we'd want iOS to behave the same way - I'll create a ticket to ensure it's not forgotten.

@helenaford helenaford merged commit 10368ec into master Oct 3, 2021
@helenaford helenaford deleted the helenaford/add-code-comment-for-cancelling-fcm-notifications-on-android branch October 3, 2021 23:13
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.

2 participants