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

rich push notifications on Android: possible values for data.style? #163

Open
ldikmans opened this issue Jun 16, 2021 · 0 comments
Open
Labels

Comments

@ldikmans
Copy link

Hi,

I am experimenting with the image property for Android notifications. I would like to display an image that does not get enlarged, as is described here in the Android Documentation -> "To make the image appear as a thumbnail only while the notification is collapsed (as shown in figure 1), call setLargeIcon() and pass it the image, but also call BigPictureStyle.bigLargeIcon() and pass it null so the large icon goes away when the notification is expanded:"

I can't find the possible values for data.style.

I am also not sure what the combination of image, picture and style will accomplish (I am running some different things) but so far, the image also expands.

The node-gcm library does not mention those fields at all (https://github.com/ToothlessGear/node-gcm#usage), in fact in one of the issues it is suggested that in order to accomplish something like what is mentioned I would have to write my own handler for it. (analogous to what you need to do for iOS if you want to show a rich push notification)

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

No branches or pull requests

2 participants