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]: The property or indexer 'OneSignal.Default' cannot be used in this context because it lacks the get accessor #633

Open
1 task done
Kidkiwi opened this issue Aug 26, 2023 · 1 comment

Comments

@Kidkiwi
Copy link

Kidkiwi commented Aug 26, 2023

What happened?

After updating to latest version 5.0.1 i get this error

The property or indexer 'OneSignal.Default' cannot be used in this context because it lacks the get accessor

Steps to reproduce?

1. Install new sdk version 5.0.1

What did you expect to happen?

Code to run as all examples state, by using OneSignal.Default

Unity version

2022.3.7 (latest)

OneSignal Unity SDK version

5.0.1

Platform

No response

Relevant log output

The property or indexer 'OneSignal.Default' cannot be used in this context because it lacks the get accessor

Code of Conduct

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

In 5.0, we changed the namespace from OneSignal.Default to OneSignal

List of namespaces in 5.0:

OneSignal
OneSignal.User
OneSignal.Session
OneSignal.Notifications
OneSignal.Location
OneSignal.InAppMessages
OneSignal.LiveActivities
OneSignal.Debug

Methods have also been changed. You can check out code samples in our Mobile SDK docs and also read more about it in our Migration Guide

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