customerio / customerio-reactnative

MIT License
23 stars 11 forks source link

Receive push notification with images #209

Closed edersonfaccin closed 9 months ago

edersonfaccin commented 10 months ago

SDK version: 3.1.8

How can i receive rich push notifications with images in my app with react native? In CustomerIO dashboard i put an image in my payload, but in my app i receive push notification without my image, this image is a public url.

Someone did this feature already?

I am using iphone simulator and real device.

levibostian commented 10 months ago

Hey there, @edersonfaccin.

Have you followed all of the instructions for setting up push notifications using the React Native SDK? After you follow all of those instructions, you should be able to see an image on your push on your device.

I do want to note that, yes, this feature is supported by the SDK. Our team would be happy to help you here on GitHub if you wish, but you may receive a faster response for this type of question by emailing technical support at win@customer.io.

edersonfaccin commented 10 months ago

Hi @levibostian, thanks for this awnser, i followed this docs steps but without success, after i updated ios/Podfile the build crash.

Do you have some example?

i am using react-native 0.71.11, with customerio-reactnative 3.1.13.

lj-cio commented 10 months ago

Hi @edersonfaccin, jumping in for Levi here to see if our sample apps here can be helpful. There are two examples available, one using APN and one using FCM as the push service.

For missing images, the most common reason is that the NSE target isn't added or configured correctly. For this and other potential causes, we have a few Troubleshooting steps here that could help point you in the right direction.

edersonfaccin commented 10 months ago

Hi @lj-cio i follow the steps and i checked and follow the example project that you had sent to me, and in build show to me the problem in the end of the build.

Screenshot 2023-10-24 at 11 16 42

i searched on internet and no solution for this.

Any steps more to check?

levibostian commented 10 months ago

I am not 100% sure what the issue is from your screenshot. This issue might be resolved by cleaning your project's build folders. Therefore, I suggest deleting the ios/Pods directory and running your command again.

Also, it would be helpful to see your ios/Podfile. You can send it to win@customer.io if you're not comfortable sharing it publicly here.

edersonfaccin commented 10 months ago

i just to send podfile to win@customer.io

thanks.