react-native-push-notification / ios

React Native Push Notification API for iOS.
MIT License
749 stars 286 forks source link

Notification with image #161

Closed girish54321 closed 3 years ago

girish54321 commented 4 years ago

Feature request

Why it is needed

If we can have the option to show imageUrl on notification bar that will be great

Possible implementation

May be just pass imageUrl

Code sample

NA

lukebars commented 4 years ago

First of all, images would need to be fetched to local iphone storage to be shown on notification bar, so you would need to use rn-fetch-blob or something like that to store the image before scheduling notification.

girish54321 commented 4 years ago

Oh but why not just pass image URL 🖼️

santoshvarma4u commented 4 years ago

Hey, I am also looking for similar behavior. Need to show an image on the notification.

sahil290791 commented 3 years ago

Check this out for image support via Firebase: https://rnfirebase.io/messaging/ios-notification-images

girish54321 commented 3 years ago

@sahil290791 Yes looks nice

andrew-stupchuk commented 3 years ago

Check this out for image support via Firebase: https://rnfirebase.io/messaging/ios-notification-images

but this solution doesn't work for local notification. How did you solve this problem?