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

[FEATURE] ANDROID Rich push notification image payload in foreground #202

Closed
msfs1992 opened this issue Oct 30, 2019 · 5 comments · Fixed by #667
Closed

[FEATURE] ANDROID Rich push notification image payload in foreground #202

msfs1992 opened this issue Oct 30, 2019 · 5 comments · Fixed by #667
Labels
feature request New feature request wontfix

Comments

@msfs1992
Copy link

It is a very small issue: If an image is attached in the payload and the app is in foreground, the image doesn't show.

:)

@dpa99c
Copy link
Owner

dpa99c commented Oct 30, 2019

When the app is in the foreground, by default a system notification is not displayed when a push notification arrives. This plugin adds support for foreground notifications by displaying a local notification when the FCM notification message arrives. As such, any additions to this local notification - e.g. an image in the payload - are a feature request rather than a bug.

@dpa99c dpa99c added the feature request New feature request label Oct 30, 2019
@dpa99c dpa99c changed the title Rich push notification image apns payload in foreground [FEATURE] Rich push notification image apns payload in foreground Oct 30, 2019
@dpa99c
Copy link
Owner

dpa99c commented Oct 30, 2019

It should be possible to add support for this by extracting the image URL from the APNS payload and inserting it into the local notification as a UNNotificationAttachment as outlined here

@msfs1992
Copy link
Author

When the app is in the foreground, by default a system notification is not displayed when a push notification arrives. This plugin adds support for foreground notifications by displaying a local notification when the FCM notification message arrives. As such, any additions to this local notification - e.g. an image in the payload - are a feature request rather than a bug.

I receive push notifications with maximun priority level even when the app is in foreground, but if the app is in background and payloads have an image attached, the image is shown perfectly (but not in foreground)
I have android 9 One UI 1.1

@msfs1992 msfs1992 changed the title [FEATURE] Rich push notification image apns payload in foreground [FEATURE] ANDROID Rich push notification image payload in foreground Oct 31, 2019
@msfs1992
Copy link
Author

It should be possible to add support for this by extracting the image URL from the APNS payload and inserting it into the local notification as a UNNotificationAttachment as outlined here

Request feature is for Android not IOS, was my mistake. Title updated

@stale
Copy link

stale bot commented May 12, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

Successfully merging a pull request may close this issue.

2 participants