appfeel / node-pushnotifications

Push notifications for GCM, APNS, MPNS, AMZ (automatic detection from device token)
MIT License
534 stars 123 forks source link

sending images with app #156

Closed arnaudambro closed 3 years ago

arnaudambro commented 3 years ago

Hi there, Great lib, thanks ! However, I have hard time sending an image in an iOS notification : is it the launchImage field ? filled with an url ? any other field required ? I couldn't find the proper doc on the web yet...

thanks for your help !

vitalyster commented 3 years ago

You need to create Service Extension in your iOS app to download URLs from your notifications and display them with custom notification layout. See https://developer.apple.com/documentation/usernotifications/modifying_content_in_newly_delivered_notifications?language=objc

alex-friedl commented 3 years ago

@arnaudambro Does it work for you now, following the advice from @vitalyster ?

arnaudambro commented 3 years ago

I dob't know, I didn't try yet, it's not an easy work to do !

alex-friedl commented 3 years ago

Will close this for now. Please re-open if you re-encounter the issue and think it's related to an issue with the library