-
Notifications
You must be signed in to change notification settings - Fork 54
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
[Bug]: Does not work unless OneSignal is the first plugin to modify notification settings on iOS #154
Comments
@ansh , We are currently aware of this issue and have it documented in our setup guide (we specifically mention the order being important). Ideally, we will be able to fix this in the future so it is not a requirement. |
@rgomezp Oh! Where is it in the documentation? I must’ve misssed it. |
This randomly stopped working again. Just randomly, no idea what happened. Super super frustrating! Even though OneSignal is the FIRST thing in the plugins array. |
@rgomezp I did that and what I found was extremely odd. For some reason even if the OneSignal package is first, sometimes it works and sometimes it doesn’t work. It is quite odd but changing the order if it stops working and changing it back can be used as a workaround. That is however not a real fix at all. This needs to be addressed at a package level. |
Agreed^^
With Thanks in advance |
Howdy y'all. Thanks for your patience while we investigate. |
Correct 😅 |
@Eigilak or @ansh would you be able to post the "Config Syncing" output of an
The part of the output I'm interested in looks something like this:
|
Hi there, I have noticed same issue. |
Hello there ! If it can help, I wrote my own plugin to add iOS Share Extension (not yet publicly published) using your plugin as startup project base. When, at the end, I tried to run To conclude, my guess is more related to async stuff done in OneSignal that might struggle if other plugins are doing the same. Cheers ! |
@rgomezp @brismithers Any chance to look solution from @EtienneUku ? |
@RL-Jurica-Penjgusic I have not been able to see plugins not getting included on |
@brismithers Hi, today we ran at same issue, luckily expo debug was set to true. We have log of successfull build (no missing push capability ) and log of build that has missing push capability. |
@RL-Jurica-Penjgusic you can send the logs to [email protected], please reference this github issue in the email. Thanks! |
@RL-Jurica-Penjgusic logs received :) |
@RL-Jurica-Penjgusic unfortunately the debug logs isn't showing anything out of the ordinary. Both logs show all plugins being included during the prebuild phase, and the expected entitlement modifications are there (see below). Can you confirm whether the
|
Any updates on making not requirement to have onesignal as top of the list? I have 2 plugins fighting for this position :( what a nightmare |
Which version of Expo are you on? @pettomartino |
@ansh Expo 49 |
The issue I'm having is actually the one reported here |
Same here, using expo 51. Not working even when in first place. But everything is working for an ios development simulator build. UPDATE: So i needed to delete my build credentials to make it work. What i did:
|
I'm experiencing this exact problem, but it gets worse when using OneSignal with FullStory — they don't work together. Both have a plugin for Expo. If I place the FullStory plugin first, it works, but then OneSignal doesn't. If I place the OneSignal plugin first, it works, but FullStory doesn't. I tried to understand why the plugin order matters for functionality, but I couldn't reach a conclusion. Surprisingly, this seems to be an old issue without a solution (it seems it's not considered important). Does anyone know why this happens or how to resolve it by placing the plugin in a different order? If the issue persists, unfortunately, we'd have to switch to another notification library since user tracking is far more critical than notifications. There are plenty of libraries for notifications, but only a few do user tracking the way we need. |
In our case it was due to the expo plugin of two deps (Onesignal and Expo assets or something) both overwriting a config. |
What happened?
I had two plugins that modified notification settings in my expo-dev-client SDK v47 app. I had
"onesignal-expo-plugin"
and"config-plugin-react-native-intercom"
and a few others as well.I followed the setup guides for OneSignal and Expo thoroughly. However, my app gave the
Missing Push Capability
error on the OneSignal dashboard.The way I fixed it was moving
onesignal-expo-plugin
above all the other plugins that modified any notification settings.Steps to reproduce?
What did you expect to happen?
Push notifications should work, but they don't.
OneSignal Expo SDK version
"react-native-onesignal": "^4.5.0",
"onesignal-expo-plugin": "^1.3.0",
Platform
iOS
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: