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

[Looking for Feedback] OneSignal SDK v5.0.0-beta.2 Released! #585

Closed shepherd-l closed 1 year ago

shepherd-l commented 1 year ago

In this major version beta release for the OneSignal SDK, we are making a significant shift from a device-centered model to a user-centered model. A user-centered model allows for more powerful omni-channel integrations within the OneSignal platform.

For more information please see the migration guide.

🚧 Beta release. Please test thoroughly prior to production use. 🚧

Please post any feedback related to the beta under this issue.

shepherd-l commented 1 year ago

v5.0.0-beta.2 has been released

For more information please see the migration guide.

Mishost commented 1 year ago

I integrated OneSignal into our Unity project and everything works great on iOS. On Android, notifications are working as well, however, whenever I call OneSignal.Default.Initialize() it throws the error: OneSignal: Missing Google Project number! Please enter a Google Project number / Sender ID on under App Settings > Android > Configuration on the OneSignal dashboard. I have followed the step-by-step instructions on integrating onesignal with unity. How do I fix this error?

brismithers commented 1 year ago

Thanks for the feedback @Mishost! I also see that error message as well. It looks like the error message is shown due to a timing window during initialization, but when this occurs we will try again and successfully initialize. Everything should be working correctly after that second try, which I think you've confirmed by successfully retrieving a notification!

We'll make an update to ensure that timing window has been closed. Thanks again!

sathyarajshetigar commented 1 year ago

Whats the alternative for this PostNotification api? await OneSignal.Default.PostNotification(pushOptions); I want to send game request P2P using friends one signal ID

sathyarajshetigar commented 1 year ago

Anyone

Whats the alternative for this PostNotification api? await OneSignal.Default.PostNotification(pushOptions); I want to send game request P2P using friends one signal ID

shepherd-l commented 1 year ago

@sathyarajshetigar Thank you for the feedback!

Unfortunately we don't have an alternative for sending notifications peer to peer and we currently don't have any plans to support peer to peer notifications

sathyarajshetigar commented 1 year ago

What is the reason behind removing P2P notifications? That's a feature we often use in our game where players can invite their friends to private games directly from their friend list. If we revert to version 3, will it get support for at least the next 2 years?

emawby commented 1 year ago

@sathyarajshetigar Version 3 will continue to be supported, however we in general we recommend using our API on your server for P2P notifications rather than sending them on the device level due to the potential security issue of exposing another user's id on the device.