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] Cannot resolve method 'disablePush' in 'OneSignal' ? #1822

Closed
1 task done
StevenRogre opened this issue Aug 28, 2023 · 3 comments
Closed
1 task done

[Question] Cannot resolve method 'disablePush' in 'OneSignal' ? #1822

StevenRogre opened this issue Aug 28, 2023 · 3 comments

Comments

@StevenRogre
Copy link

StevenRogre commented Aug 28, 2023

How can we help?

So I've been using the "disablePush" boolean in my app to let users opt in or out of getting notifications but the method is no longer present since I updated to the latest 5.0 version! Is there a new one or something? I cannot find anything in the docs or here!

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jennantilla
Copy link
Contributor

jennantilla commented Aug 29, 2023

Hi @StevenRogre, thanks for reaching out!

The disablePush method has been deprecated in 5.0.0. However, you can still disable push notifications to the subscription using the optOut SDK method.

Let us know if you have any additional questions or concerns!

@StevenRogre
Copy link
Author

Thanks! I have another issue now lol.

java.lang.Exception: Service interface com.onesignal.core.internal.application.IApplicationService could not be instantiated

Seems to be happening after using ProGuard.

@jennantilla
Copy link
Contributor

@StevenRogre we are working on updating ProGuard rules for 5.0.0.

You can track the issue and add any additional comments here: #1810

I'll go ahead and close out this issue since the original question has been addressed.

Thanks!

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