-
Notifications
You must be signed in to change notification settings - Fork 60
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]: Random crashes on android #494
Comments
2.x.x to 3.x.x migrationIf you upgraded from a 2.x.x version of the OneSignal Unity SDK make sure you have deleted the Still an issue?If after removing the folder you still see a crash please report the full stack trace so we can help find the root cause of your issue. Background detailsGCM was switched to FCM (this was actually done in a 2.x.x version but the |
I did a clean installation several times. There is nothing from 2.x version in the project. Not a single folder. The OneSignal folder now only contains the generated link.xml file As for stacktrace. The moment I add OneSignal intro my project I begin getting hundreths for crash reports on the google console with these.
I remove OneSignal and I get zero crashes. None whatsoever. I'll give it a couple more hours and I've decided this package is just wasting days of my work already. It's not working on Amazon, Google and won't compile on iOS. No matter what we do or try. Version 2.x was working just fine. 3.0 and 3.0.1 is a total disaster. |
Android Crash reportsThanks for the stacktrace, however I don't see OneSignal in it. The only non Android AOSP class I see in the stack is
This line normally has the class name specifically that was not found. Can you check some other crash reports and try exporting them in a different way to get this piece of information? Any other details such as Android version crashing will be helpful too. Is this a crash you can reproduce on any of your devices? Won't compile on iOSThe 3.x.x switched to Cocoapods to install the native part of the OneSignal SDK. If this is related to that you can check out #468 (comment) on some setting you will need to confirm are on. If the above isn't what you are seeing please create a new issue for iOS with the full build error and we can take a look. |
That's the whole stack trace. I wish it had more information. I removed OneSignal sdk from my game. Zero crashes now. Thanks for the help, I gave up on 3.0.1 and I'm so mad at wasting time with this that I don't even want to roll back to 2.x. |
What happened?
I'm getting crashes on android when I get a notification. It complains about missing classes.
I did the integration of 3.0.1 as told by the official guide. But I realize something is missing in the androidmanifest compared with the demo project in your github from here https://github.com/OneSignalDevelopers/OneSignal-Unity-Sample/blob/main/Assets/Plugins/Android/OneSignalConfig.plugin/AndroidManifest.xml
The lines:
they are nowhere to be found. My Onesignal android manifest in full is like this:
so is it missing the whole GCM system? Is this by design?
I'm just trying to figure out what's causing the crashes. So far 3.0 upgrade has been horrible.
Steps to reproduce?
What did you expect to happen?
random crashes
Unity version
2021.3.1
OneSignal Unity SDK version
3.0.1
Platform
Android
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: