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

largeIcon and smallIcon from server? #25

Open
flaviox83 opened this issue Mar 5, 2016 · 5 comments
Open

largeIcon and smallIcon from server? #25

flaviox83 opened this issue Mar 5, 2016 · 5 comments

Comments

@flaviox83
Copy link

Hi, is it possible send push notification with dinamically server-side smallIcon and largeIcon?

@morinel
Copy link
Owner

morinel commented Mar 5, 2016

Not in the current version. If you have a limited set, why not store them all in the app and point to the correct one in your notification payload?

@morinel morinel changed the title largeIconn and smallIcon from server? largeIcon and smallIcon from server? Mar 5, 2016
@flaviox83
Copy link
Author

Thank's for reply. I've tried
"data" : {
"title" : "my title",
"message" : "my message",
"smallIcon" : "myicon.png"
}

where myicon.png is placed in platform/android/res/drawable but nothing.

@morinel
Copy link
Owner

morinel commented Mar 5, 2016

Ah right, specifying the small/largeIcon is not yet supported in the payload of the notification, only when configuring it with registerPush({ })...

If you want, you could send a pull request with this feature.

@iotashan
Copy link

@flaviox83 have you/are you doing this? If not, I will.

@flaviox83
Copy link
Author

Sorry, I'm not a Java programming

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

No branches or pull requests

3 participants