Closed edersonfaccin closed 7 months ago
Hi @edersonfaccin, Thank you for reaching out with your queries. Have you tried our FCM sample app first? Are you specifically looking for an FCM sample that uses Expo only, or are you interested in one that integrates with expo-notifications
? Also, have you checked out the section on multiple push providers in our documentation? If you can describe the problem in more detail or share specific questions, we might be able to help you more effectively.
Hi @mrehan27, i am looking for an expo example with FCM, i saw the examples section but i can't find an example. I am testing and i can receive push, but not push with rich push.
Thank you @edersonfaccin for the details. Unfortunately, we don't have a sample that combines FCM with Expo directly. We do have a plugin for Expo, but it currently only supports APN for iOS.
However, if you're using bare workflow in Expo, you can integrate our React Native package into your app and receive notifications. If you're experiencing issues with rich push notifications, it's possible that multiple receivers for push notifications are causing them to be processed improperly. Please refer to this section in our documentation for more details on integrating our SDK with multiple push providers.
If you continue to face issues and are unable to find the root cause, please feel free to reach out to us at win@customer.io with a link to this ticket, along with your AppDelegate
, NotificationServiceExtension
, and any other relevant files to help us debug this further.
We've run into a similar problem. We're using expo as well. We're currently not using the customer.io SDK at all. If we use the rich push UI for just basic title and body notifications with a picture it works fine on iOS. On Android it partially works, but the body text doesn't work. If we use a custom payload and set the key for the body text to message
instead of body
it works.
Is there planned support for Android for the expo plugin in the roadmap? We're debating about just switching to custom payloads for all pushes, but if there are plans for expo support for both Android and iOS then perhaps we can hold off changing all of the workflows.
Wait, the docs here seem to indicate that FCM for android is supported: https://www.customer.io/docs/sdk/expo/getting-started/#install
@stuckj Sorry for not getting back to you sooner, I encountered some issues with my notifications 🤐
To clarify, our Expo plugin currently does not support FCM for iOS. However, It does support FCM for Android and APN for iOS. Unfortunately, we don't have sample apps for Expo available yet.
For the issue you're experiencing, it could be arising from Rich Push editor using a different JSON structure, i.e. by utilizing the data
object. You can view the final JSON sent by the Rich Push editor in the preview tab. Or our SDK can handle it for you if you're using FCM for Android and APN for iOS. But, if you're using FCM for iOS, our Expo plugin currently does not support this.
Please let me know if you have any more questions or if the issue continues.
Ah, I misunderstood. That's good to hear... I'll look into using the expo plugin.
Closing this due to inactivity. However, even though the issue is closed, please feel free to reach out for any further questions.
I am doing some tests using React Native with expo, and right now i can receive single push notification, but not rich push notification. I couldn't find some example with this specifications: expo, fcm, rich push.
I tryed apply the same react native cli example with expo but without success.