OneSignal / OneSignal-Unity-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Unity app with OneSignal. https://onesignal.com
Other
222 stars 61 forks source link

[Bug]: The property or indexer 'OneSignal.Default' cannot be used in this context because it lacks the get accessor #633

Closed Kidkiwi closed 1 week ago

Kidkiwi commented 1 year ago

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

shepherd-l commented 1 year ago

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