Skip to content

feat(fcm): Add image in notification support. #298

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

Merged
merged 5 commits into from
Aug 27, 2019

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants