Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"encountered already present delegate" warning when using with Expo Push Notifications #144

Closed
lucaventura opened this issue Jul 26, 2024 · 3 comments

Comments

@lucaventura
Copy link

lucaventura commented Jul 26, 2024

When using this plugin in combination with expo-notifications our expo push notifications no longer work, and we receive this warning:

[expo-notifications] EXNotificationCenterDelegate encountered already present delegate of UNUserNotificationCenter: <CioMessagingPush.UserNotificationsFrameworkAdapterImpl: 0x301998910>. EXNotificationCenterDelegate will not overwrite the value not to break other features of your app. In return, expo-notifications may not work properly. To fix this problem either remove setting of the second delegate or set the delegate to an instance of EXNotificationCenterDelegate manually afterwards.

Using these package versions:

"customerio-expo-plugin": "^1.0.0-beta.15", "customerio-reactnative": "^3.8.0", "expo": "~50.0.19", "expo-notifications": "~0.27.8",

@levibostian
Copy link
Contributor

Hey there, Luca. Thank you for all of the details provided thus far. Sorry to hear you're experiencing this issue. Let me try and help get this resolved.

As far as the warning message, it's one that can be ignored. We have taken extra steps to verify that the Customer.io Expo plugin and expo-notifications is compatible together so even though you see a warning, the Customer.io expo plugin generates code that satisfies the requirements stated by this warning message.

Could you describe what is no longer working for you? Could you describe the expected and actual behavior? Could you give a series of steps that you perform in your app to reproduce the behavior?

Hope you have a wonderful day!

@lucaventura
Copy link
Author

After adding the customerio-expo-plugin our calls to Notifications.getExpoPushTokenAsync() no longer resolve, they hang indefinitely. If we remove the customerio-expo-plugin the issue does not happen.

@levibostian
Copy link
Contributor

Sorry again to hear that you are experiencing this behavior.

We are aware of Notifications.getExpoPushTokenAsync() calls not resolving after adding the Customer.io Expo plugin. This issue is being tracked in this issue.

To try and unblock your app, I recommend reading through the comments in that similar issue to see if any of the suggestions work for your app.

Feel free to share more details if you believe your issue is unrelated and we will be happy to re-open it.

@linear linear bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants