NativeScript / plugins

@nativescript plugins to help with your developments.
https://docs.nativescript.org/plugins/index.html
Apache License 2.0
186 stars 104 forks source link

[@nativescript/local-notifications] Support notification thumbnails on iOS #489

Open LewisSmallwood opened 1 year ago

LewisSmallwood commented 1 year ago

For local notifications, It would be great to support the thumbnail property on iOS.

It is possible but would require a rewrite to support a Notification Service Extension as outlined in this article.

https://medium.com/@lucasgoesvalle/custom-push-notification-with-image-and-interactions-on-ios-swift-4-ffdbde1f457

vpiskunov commented 1 month ago

Could the following Firebase Messaging package solve your needs @LewisSmallwood ?

Of course it would be nice to have in the core but I’m guessing that it’s a non core/highest priority item I can suspect, so just wanted to point you to a solution which worked for us on this a couple of previous projects already.

https://www.npmjs.com/package/@nativescript/firebase-messaging#send-an-image-in-the-notification-payload

insytes commented 1 week ago

This is already supported using the image option?

Screenshot 2024-06-25 at 18 25 22


Screenshot 2024-06-25 at 18 25 51