Closed BrandonYuen closed 1 week ago
Hey there !
Apologies that you are facing this issue.
The Consistency issue: no parent for object "NotificationService.m"
typically arises when there are multiple files with the same class name and it can potentially cause a conflict.
Would you be able to confirm if you still encounter this error after running expo prebuild --clean
? This will recreate the native directories and reinstall the plugin. Also, I recommend clearing out Derived Data, which might resolve any issues from conflicting files.
Let me know if the issue persists after trying these steps!
@ami-aman Thank you for your reply! Our builds are made via eas, that's where the error comes from. I re-tried the build there with the "Clear cache and retry" option, but to no avail.
I am not sure but I think a expo prebuild
step would not be needed when we use a managed Expo project, since the builds are created on their runners. Unless I am missing something :)
Maybe another native dependency is using that NotificationService.m class name, but I could only think of react-native-firebase, that's why I listed it there. However, that does not seem to be it.
Hi @BrandonYuen Apologies for the delay in response and appreciate the patience.
It sounds like the issue persists despite clearing the cache on EAS. Given that, here are a few further suggestions:
package.json
for any dependencies that might relate to push notifications or extensions. Also, see if there are any dependencies that mention “NotificationServiceExtension” in their documentation, as they could potentially conflict. customerio-expo-plugin
from the project temporarily and then rebuild on EAS. This can help confirm whether the plugin is causing the conflict.Closing this issue due to inactivity. If you still need assistance or have a related question, feel free to open a new issue.
Hi,
We're trying to integrate the Customer IO SDK into our managed Expo app using this plugin. However, we are unable to successfully make an iOS build. I've followed the guide step by step.
We have the following related dependencies installed:
Error on build (Install pods):
I've searched this issues board but couldn't find anything related, except for https://github.com/customerio/customerio-expo-plugin/issues/118, however, we don't use OneSignal or any other dependency that already creates a NotificationService that I know of. I also did a
expo prebuild -p ios
but in those files I do not see a NotificationService class.I hope someone can point me in the right direction or knows the solution. Thanks in advance! 🫶