2

I currently have an app which was made with React Native. I need to display a local push notification, and there needs to be an image displayed within this notification. Currently, I am using the react-native-push-notification library for basic text notifications.

I have been looking for solutions but I have not found any way yet that I can add images into a notification. Is there some way to hook into native code that would allow me to do it?

Any help is greatly appreciated.

4
  • Did you solve this? Commented Mar 5, 2019 at 9:08
  • Did you solve this? Commented Jun 6, 2019 at 11:20
  • Have you found any solution ? Commented Oct 10, 2019 at 8:26
  • Did you solve this? Commented Nov 1, 2019 at 4:30

2 Answers 2

1

I am using react-native-firebase and it works great for me. It has an option for local notifications.

You can learn more about iOS notification with an image here: https://rnfirebase.io/docs/v4.2.x/notifications/reference/IOSNotification It gives an option to set a launchImage for iOS notifications. You should go through the documentation properly in order to install it properly.

Sign up to request clarification or add additional context in comments.

Comments

1

I have used react-native-fcm, which is implemented using react-native-firebase. The support for issues are good enough and the document is well drafted for both ios and android. The pictures, icons and actions are configurable for both local and remote notifications.

1 Comment

this repository is not in development anymore and few feature might not work properly. github.com/invertase/react-native-firebase , this is the ideal one for now

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.