-
Notifications
You must be signed in to change notification settings - Fork 45
[Bug] Unity 6 - Firebase Messaging Theme.AppCompat - Crash #1229
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
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Just for clarification. That is the auto generated manifest file. I tried quite a bit of themes and finally found one that would let me build. I added this theme to the unity activity entry android:theme="@android:style/Theme.DeviceDefault.Light.NoActionBar" The app builds and loads so far with no issues. |
Unity6 32f1 - 12.8.0 firebase messaging has same issue. |
Unity 6 38f1 - 12.7.0 also has the same problem (firebase messages). I tried adjusting android:theme but it doesn't seem to work. |
Hey folks, thanks for bringing this up to our attention. I was able to reproduce the same behavior. I'll let our engineers know and check this out. |
Had the same problem! Here is how I fixed it. Updated the AndroidManifest.xml with the following Added "android:theme="@style/BaseUnityGameActivityTheme" in the Unity activity entry Note that this needs to in between "android:name" and "android:configChanges" As an example: Before it was: <activity android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"> After I added the change <activity You can read more about folks having issues with Unity 6 game crashes here and how they updated the AndroidManifest and some background on why this was an issue: If this helped you, give me an emoji :) |
Description
Crash at app launch. You need to use a Theme.AppCompat theme (or descendant) with this activity.
Android version 8.0.0 - Knox API 25
Unity 6 - 37f1
Firebase Messaging sdk only
Reproducing the issue
No response
Firebase Unity SDK Version
12.7.0
Unity editor version
Unity 6 - 37f1
Installation Method
.unitypackage
Problematic Firebase Component(s)
Messaging
Other Firebase Component(s) in use
No response
Additional SDKs you are using
Targeted Platform(s)
Android
Unity editor platform
Windows
Scripting Runtime
IL2CPP
Release Distribution Type
Pre-built SDK from https://firebase.google.com/download/unity
Relevant Log Output
If using CocoaPods for Apple platforms, the project's Podfile.lock
Expand
Podfile.lock
snippet👀 Replace this line with the contents of your Podfile.lock!
The text was updated successfully, but these errors were encountered: