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

[question]: Can't call optIn / optOut with 5.2.4 #1514

Open
1 task done
sinosoidal opened this issue Nov 12, 2024 · 3 comments
Open
1 task done

[question]: Can't call optIn / optOut with 5.2.4 #1514

sinosoidal opened this issue Nov 12, 2024 · 3 comments

Comments

@sinosoidal
Copy link

sinosoidal commented Nov 12, 2024

How can we help?

Hi,

I'm having an error when compiling my project with 5.2.4:

[OneSignal.User.pushSubscription optIn];
Property 'pushSubscription' not found on object of type 'id'

[OneSignal.User.pushSubscription optOut];
Property 'pushSubscription' not found on object of type 'id'

I've tried the help of google, chat gpt, your migration guide but can't find a solution for this problem.

Can you please help me? Thanks!

Code of Conduct

  • I agree to follow this project's Code of Conduct
@sinosoidal sinosoidal changed the title [question]: Can't call optIn / optOut with 5.2.X [question]: Can't call optIn / optOut with 5.2.4 Nov 12, 2024
@nan-li
Copy link
Contributor

nan-li commented Dec 5, 2024

Hi @sinosoidal,

Thanks for reaching out with your question, your method looks correct. Do you have the correct imports and are other OneSignal calls are compiling?

Perhaps you can try cleaning your project.

@sinosoidal
Copy link
Author

@nan-li I'm not the only one with this issue -> #1512

@nan-li
Copy link
Contributor

nan-li commented Dec 5, 2024

@sinosoidal the root issue for you is also

Importing OneSignalFramework.h in bridging header results in error No type or protocol named 'OSUser'?

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