Skip to content

Conversation

chong-shao
Copy link
Contributor

@chong-shao chong-shao commented Aug 5, 2019

Add image in notification support.

Testing

  • Added unit tests and modified one existing integration test to reflect this change.

API Changes

  • In Firebase Cloud Messaging, added "image" field in the general Notification class, the AndroidNotification class, and the ApnsFcmOptions class.

RELEASE NOTE: Added new APIs for specifying an image URL in notifications.

@chong-shao chong-shao requested a review from hiranya911 August 14, 2019 23:06
@hiranya911 hiranya911 changed the title Add image in notification support. feat(fcm): Add image in notification support. Aug 20, 2019
Copy link
Contributor

@hiranya911 hiranya911 left a comment

Choose a reason for hiding this comment

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

Looks pretty good. Just a few suggestions.

Do we need to validate the imageUrl argument? (check not not empty and parse as a valid URL)

@chong-shao
Copy link
Contributor Author

chong-shao commented Aug 27, 2019

I think there's no need to validate the imageUrl argument since the HTTP API also does not do the check.

Copy link
Contributor

@hiranya911 hiranya911 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants