Description
Description
Good day,
Upon uploading our game to the google play store we received this error in the dashboard
I eventually found that the issue is connected to these 2 additions to the AndroidManifest.xml :
<permission android:name="com.DefaultCompany.TestingSite.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION" android:protectionLevel="signature"/> <uses-permission android:name="com.DefaultCompany.TestingSite.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION"/>
which from what I understand is a cause of a unhandled broadcast receiver.
I have made a side project where I would build a APK after each 3rd party SDK we have in our main project, and would then unpack the APK and check the AndroidManifest.xml each time.
I found that when I added Firebase Crashlytics and Firebase Messaging unitypackage to the project, it would generate those permissions in the last AndroidManifest.xml
Reproducing the issue
-
Create new project in Unity
-
Add Crashlytics or Messaging unitypackage to the project
-
Just in case - run External dependency resolver
-
Build Project as Android, wait for APK
-
using apktool
https://formulae.brew.sh/formula/apktool
you can unpack APK -
See last AndroidManifest.xml and search for
DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION
Firebase Unity SDK Version
12.0.1
Unity editor version
2022.3.27f1
Installation Method
.unitypackage
Problematic Firebase Component(s)
Crashlytics, Messaging
Other Firebase Component(s) in use
Analytics, Crashlytics, Messaging
Additional SDKs you are using
Facebook, IronSource
Targeted Platform(s)
Android
Unity editor platform
Mac
Scripting Runtime
IL2CPP
Release Distribution Type
Pre-built SDK from https://firebase.google.com/download/unity
Relevant Log Output
No response
If using CocoaPods for Apple platforms, the project's Podfile.lock
No response