-
Notifications
You must be signed in to change notification settings - Fork 61
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
[question]: Unable to instantiate receiver on Android #728
Comments
Thanks for reporting! Your manifest looks to still have old v3 OneSignal code which was changed in v5. (For context, v5 does not have com.onesignal.UpgradeReceiver or com.onesignal.BootUpReceiver and was changed to com.onesignal.notifications.receivers.UpgradeReceiver and com.onesignal.notifications.receivers.BootUpReceiver) Could you make sure to run all the steps in Window > OneSignal SDK Setup and to resolve your Android dependencies with Assets > External Dependency Manager > Android Resolver > Force Resolve Let me know if you are still experiencing the issue |
Thanks for the reply! I ran all the steps a few times, and ran the installation process again and again. And deleting all references in between to start fresh. Any chance I can have the right manifest block for all oneSignal related receivers / activities, so I can compare and see what's missing? |
Thanks for the detailed update! I think you might still have some old files that are inserting the old dependencies. Have you followed the Migration v3 to v5 Guide? If you haven't already, I recommend doing:
I think "Deleting the directory at
I think this could solve it but you would need to export your Unity project and manually edit your APK's manifest every time. Ideally I think it would be better if the project exported the APK correctly.
If the above doesn't work, I can provide the manifest of our example project's APK for you! You can also produce one with a new blank project with 5.1.4 |
Thanks for the reply! |
3.x.x to 5.x.x upgradeAre you able to reproduce the crash yourself or are you only seeing crash reports? It sounds like the 3.x.x SDK is not fully being removed due to some unknown reason, as the reference to some of the classes are not being cleaned up such as com.onesignal.UpgradeReceiver. Could you fully remove OneSignal again ensuring that the manifest entries are completely removed from all AndroidManifest.xml files? Making sure all pieces of OneSignal are removed is critical here, search your full Unity project for any OneSignal references. Restart Unity and then install OneSignal 5.x.x SDK again. Fresh new project with 5.x.xWhen you tested a fresh new project, how did you check the manifest references? Did you run into any crashes on the new project? Did you see any runtime crashes after building the new project with OneSignal? |
Closing due to inactivity. If you are still having issues, feel free to open a new issue |
How can we help?
I've lately updated the onesignal sdk from 3.0.6 to 5.1.4 (installed from the asset store), running unity 2022.3.21.
in a large portion of android devices i keep seeing this runtime error
this error appears for both
UpgradeReceiver
andBootUpReceiver
.this is the onesignal block from my manifest
tried removing one signal package, and installing it both from the asset store again, and through the scoped registry, and got the same errors.
followed the instructions here: https://documentation.onesignal.com/docs/unity-sdk-setup
In some devices I still manage to get notifications, despite the errors.
any advice on what might have gone wrong?
Code of Conduct
The text was updated successfully, but these errors were encountered: