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

[Bug]: Code in tutorial references old 2.x.x method GetPermissionSubscriptionState #517

Closed
1 task done
TimmyBest opened this issue Jun 17, 2022 · 1 comment
Closed
1 task done

Comments

@TimmyBest
Copy link

TimmyBest commented Jun 17, 2022

What happened?

The code provided in the tutorial doesnt compile. The Xcode complains with a deprecated method.
See screenshots here. Unity version 2020.3.32
https://drive.google.com/drive/folders/1AiKLfFIELVVLbgYwlrb11vIIbKxfu7GT?usp=sharing

Edit: attachment directly added by @jkasten2:
Screenshot 2022-06-17 at 23 11 53

Steps to reproduce?

Build on unity for iOS

What did you expect to happen?

To have no errors and for the example snippet code to compile.

Unity version

2020.3.32

OneSignal Unity SDK version

3.0.2

Platform

iOS

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jkasten2
Copy link
Member

@TimmyBest Per the OneSignal 2.x.x to 3.x.x migration guide the OneSignal.GetPermissionSubscriptionState(); has been split up into different methods. Please see the guide for each conversion you should use.

If you see OneSignal.GetPermissionSubscriptionState(); anywhere in the OneSignal guides still please share so we can correct them.

The Xcode screenshot looks only to be a warning, not a compile or runtime error. If you use notifications from other libraries test to ensure they are still working and check for updates from them if they are not.

@jkasten2 jkasten2 changed the title [Bug]: The code provided in the tutorial doesn't compile. The Xcode complains with a deprecated method. [Bug]: Code in tutorial references old 2.x.x method GetPermissionSubscriptionState Jun 28, 2022
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

3 participants