-
Notifications
You must be signed in to change notification settings - Fork 55
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
Beta: iOS not yet fully functional #21
Comments
@rgomezp Now that Expo EAS is out of beta and fully released and free to use, do you have an update on when OneSignal will be usable with this EAS plugin? We'd like to build our app using EAS and include OneSignal. |
@rgomezp Is this related to these errors when running on iOS?
I followed the README to set up the dependency and add the plugin to my app.config.ts. Initializing
|
@gtokman I don't believe the error is related, I don't see OneSignal listed anywhere in your error message. I also wasn't able to reproduce any build issues with a new expo project with I recommending trying to resolve your issue by checking out this answer: |
@jkasten2, thanks for the help! Unfortunately, I didn't have any luck with the StackOverflow comments. Then error only occurred when I tried to initialize
|
@rgomezp To add a Target using config plugins, you can use / take inspiration from how I wrote my fully functioning OneSignal config plugin. This is the snippet to add an additional Target:
|
@Svarto , Were you able to test everything, get notifications as well as things like buttons, badges, etc...? You can take a look at our progress so far on the We would greatly appreciate help from the community, especially anyone deeply familiar with the |
@gtokman I think I had the same issue when trying to run in expo client on ios (worked fine when |
@rgomezp @m1st1ck hmm, not sure what the issue is - with the above helper to add a Target through a config plugin, I get a fully functioning OneSignal integration with EAS. I can build a custom dev client ( The challenge with the dependencies not linking is likely covered by the helper function above as it works for me. Would advise to have a look through, as it is a custom written plugin from low level functions from the cordova-xcode package that is not documented anywhere (poor documentation as you mentioned, I learnt the package by reviewing the code on GitHub) |
@Svarto sorry I think I should have be more specific that the error occurs when using Expo Go app from the store. When using custom dev client I don't get the error but, after a quick test now, it seems like I am not getting the user on the onesignal dashboard. Building a stand alone app with |
@m1st1ck aha, yes 100% the Expo Go app will not work as there are native integrations required for OneSignal which is not present in the Expo Go app. In development I get them registered in "all users" but it says "simulators are not supported" in the subscription field... |
Howdy folks, You can take a look on the branch It seems like some folks (including yourself) are also having no issues while others are reporting no users in the dashboard (upon further inspection, this is a result of the native module not loading at all). If you have any ideas as to why this could be happening, we would appreciate the input. @m1st1ck , as Svarto mentioned, you will not be able to run on Expo Go since it doesn't come with the native dependencies required by OneSignal. You can think of the config plugin as adding some custom native code to your application. To get those native changes into your build, Expo needs to bundle it into a custom client that includes those changes. Think of it as building your own Expo Go app to run the application. Since the Go app is prebuilt, it will not include any native customizations. That is why it would never work on the Go app. |
Please upgrade to 1.0.0-beta8 for the latest changes! Thanks all |
Issue@waelabd This plugin requires the Work aroundTo fix this you can run Fix & DocumentationWe will be updating our documentation soon with these details. We are also looking into seeing if we can change this plugin so the extra setup instead required at all. |
Thank you @jkasten2 for your answer. It makes sense indeed. I am able to run it locally in the simulator, and it works as expected. However I have tried to compile it using Expo Did I miss something again ? |
Hi @rgomezp. Great to see, you are working on integration with the expo platform! 👏 What's the state of the expo plugin now? If I have a working app with a bare workflow should I migrate to a plugin or would you recommend staying with the current solution? |
@waelabd , @pilotpirxie , In terms of whether you should move away from the bare workflow, it is really up to you. The Expo plugin is designed to work even with managed workflows. This is great for integrations that use automated building or testing workflows since it won't necessitate an interruption in order to eject to bare. As EAS continues being built out and more Expo plugins are contributed to the community, I suspect it will be more convenient to remain in the managed workflow to accomplish the bare minimum needed to fully develop, test, and deploy your application. |
iOS is now in the same state as Android today. The documentation covers iOS and your app can be built and all the features of OneSignal can be used. Closing and unpinning this issue but feel free to open a new issue if you are still running into any iOS specific issues. |
This issue is to highlight that in the beta, the iOS platform is not yet fully functional.
This includes a lack of support for the Notification Service Extension and App Groups, among other issues.
We are working to add support for these very soon. Thanks for your patience.
The text was updated successfully, but these errors were encountered: