Skip to content

[Bug] [Crashlytics][Messaging] DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION causes "incorrectly registered broadcast receiver: error #1088

Closed
@AsafWhalo

Description

@AsafWhalo

Description

Good day,

Upon uploading our game to the google play store we received this error in the dashboard
image

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

  1. Create new project in Unity

  2. Set project as IL2CPP, and:
    image

  3. Add Crashlytics or Messaging unitypackage to the project

  4. Just in case - run External dependency resolver

  5. Build Project as Android, wait for APK

  6. using apktool https://formulae.brew.sh/formula/apktool you can unpack APK

  7. 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions