-
Notifications
You must be signed in to change notification settings - Fork 60
Description
Using Plugin.Firebase with:
-
Plugin.Firebase.Analytics
-
Plugin.Firebase.Crashlytics
-
Plugin.Firebase.RemoteConfig
We experience a crash on Android 11, especially OnePlus devices, in the internal IntermediateActivity during onCreate():
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.content.Intent.migrateExtraStreamToClipData(android.content.Context)' on a null object reference
at crc64ba438d8f48cf7e75.IntermediateActivity.n_onCreate(Native Method)
at crc64ba438d8f48cf7e75.IntermediateActivity.onCreate(IntermediateActivity.java:...)
Steps to Reproduce:
-
Use the above Plugin.Firebase modules in a .NET MAUI app.
-
Launch the app or trigger Firebase functionality.
-
Crash occurs on Android 11 (OnePlus). Works on emulators/other devices.
Observed Behavior:
- getIntent() in IntermediateActivity is null, causing the crash in migrateExtraStreamToClipData().
Expected Behavior:
-
IntermediateActivity should handle null Intents gracefully.
-
Avoid crashing on Android 11 OEM devices.
Environment:
-
Plugin.Firebase version: 3.1.1
-
.NET MAUI version: .net9
-
Device: OnePlus Android 11
-
Emulator: Pixel 5 / Android 11 (no crash)
Request:
-
Add null-checks for getIntent() in IntermediateActivity.
-
Ensure Android 11 OEM compatibility for empty Intents.