Skip to content

feat(fcm): Add 12 new android notification params support - #320

Merged
chong-shao merged 15 commits into
masterfrom
12-new-android-notification-params
Oct 29, 2019
Merged

feat(fcm): Add 12 new android notification params support#320
chong-shao merged 15 commits into
masterfrom
12-new-android-notification-params

Conversation

@chong-shao

@chong-shao chong-shao commented Oct 17, 2019

Copy link
Copy Markdown
Contributor

Add 12 new android notification params support

Testing

  • Added unit tests to reflect this change.

API Changes

  • In Firebase Cloud Messaging, added new fields in AndroidNotification class.

RELEASE NOTE: Added a series of new parameters to the AndroidNotification class that allow further customization of notifications that target Android devices.

@lahirumaramba

Copy link
Copy Markdown
Member

Thanks @chong-shao!
Did we decide not to include DefaultLightSettings parameter in the Java API?

@chong-shao

Copy link
Copy Markdown
Contributor Author

Opps I forgot to add DefaultLightSettings .. We should include it. Will add it soon

@chong-shao

Copy link
Copy Markdown
Contributor Author

Added DefaultLightSettings.

@hiranya911 hiranya911 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks mostly good. Make sure the public APIs accept primitives whenever possible. And I thought some of the builders were slightly overkill.

Comment thread src/main/java/com/google/firebase/messaging/AndroidNotification.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/AndroidNotification.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/AndroidNotification.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/Color.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/Duration.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/Duration.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/Color.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/LightSettings.java Outdated
Comment thread src/test/java/com/google/firebase/messaging/MessageTest.java
@hiranya911 hiranya911 assigned chong-shao and unassigned hiranya911 Oct 17, 2019
Comment thread src/main/java/com/google/firebase/messaging/AndroidNotification.java Outdated

@hiranya911 hiranya911 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for making the changes. This is very close to being done. Just a few nits to address.

Comment thread src/main/java/com/google/firebase/messaging/AndroidNotification.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/AndroidNotification.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/Color.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/Color.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/LightSettings.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/LightSettings.java
Comment thread src/main/java/com/google/firebase/messaging/LightSettings.java Outdated

@hiranya911 hiranya911 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks. Looks pretty good. Just a last couple of nits.

Comment thread src/main/java/com/google/firebase/messaging/LightSettings.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/AndroidNotification.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/AndroidNotification.java Outdated
@hiranya911

Copy link
Copy Markdown
Contributor

@egilmorez please take a look at the API doc components of this PR.

@hiranya911 hiranya911 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Please wait for @lahirumaramba and @egilmorez to make a pass.

@lahirumaramba lahirumaramba left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

Comment thread src/main/java/com/google/firebase/messaging/LightSettings.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/AndroidNotification.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/AndroidNotification.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/AndroidNotification.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/AndroidNotification.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/AndroidNotification.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/AndroidNotification.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/AndroidNotification.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/AndroidNotification.java Outdated
Comment thread src/main/java/com/google/firebase/messaging/AndroidNotification.java Outdated

@egilmorez egilmorez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some suggests for you Chong.

Thanks!

@lahirumaramba lahirumaramba removed their assignment Oct 22, 2019

@egilmorez egilmorez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LG Chong, thanks!

(I should have know that backticks don't work in Javadoc :) )

@hiranya911 hiranya911 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just one comment about setter names. Then we can merge.

Comment thread src/main/java/com/google/firebase/messaging/LightSettings.java Outdated

@hiranya911 hiranya911 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks. LGTM 👍

…xpected value of eventTime does not depend on the machine's local timezone.
@chong-shao
chong-shao merged commit a8f5ba8 into master Oct 29, 2019
@chong-shao
chong-shao deleted the 12-new-android-notification-params branch October 29, 2019 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants