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

[question]: Import OneSignal packages unity 6 #769

Closed ronmara closed 40 minutes ago

ronmara commented 2 days ago

How can we help?

I'm using Unity 6 (version 6000.0.29f1) and attempting to set up the OneSignal SDK (version 5.1.11). However, the "Import OneSignal packages" step fails without providing any error messages or logs to indicate what went wrong. I've attached a video demonstrating the issue.

Has anyone experienced this or have suggestions for resolving it?

https://github.com/user-attachments/assets/f439c934-1049-42e1-b8c0-124e0951f616

Code of Conduct

burbaoleg commented 1 day ago

Did you manage to solve the issue? Im stuck with the same problem (2022.3.16f1), even tried importing to a new project, but still no luck, OneSignal just doest import its package

ralts00 commented 16 hours ago

Same problem :(

burbaoleg commented 13 hours ago

I discovered that OneSignal Unity SDK has updated to version 5.1.11 few days ago, and i suspect that something is wrong in this update, something, that blocks us from importing package. Guess nothing left to do than to just simply wait for a new update or try to go back to previous versions with github

UPD: tried installing version 5.1.7 from github, worked first try. Apparently, it was for real because of the version 5.1.11

ralts00 commented 7 hours ago

@burbaoleg Thank you very much for sharing this information. I am going to try with 5.1.7. I thought my problem was because I did not have the "google-services.json" file in the assets, but since they do not mention it in their documentation, I did not include it.

shepherd-l commented 5 hours ago

Thanks for bringing this to our attention. I've identified that this is currently a bug with our 5.1.11 release.

As burbaoleg mentioned, as a workaround:

  1. Install a previous version like: 5.1.10
  2. For Unity 6: Make sure to only import the files under OneSignal and uncheck all files under Packages (like the attached img below)

I've tested this successfully with Unity 6.000.0.29f1.

~A fix will be released soon in 5.1.12~ Should be working in 5.1.11 see below comment for more details

Screenshot 2024-12-03 at 11 57 31 AM

shepherd-l commented 40 minutes ago

Hi all

This issue has been resolved. Importing the package on version 5.1.11 should now work

If there are still issues, feel free comment and I'll reopen the issue