Closed asad-baidar closed 3 days ago
Hi @asad-baidar could you please try with the latest version of firebase dependencies REF: https://firebase.google.com/support/release-notes/android and see if that helps. If the issue still exists with the latest version of dependencies, can you please share a repro project to investigate the issue further?
Hi @jitheshncxe, let me try and get back. thanks.
Hi @asad-baidar could you please try with the latest version of firebase dependencies REF: https://firebase.google.com/support/release-notes/android and see if that helps. If the issue still exists with the latest version of dependencies, can you please share a repro project to investigate the issue further?
Hi @jitheshncxe No luck with the latest firebase SDK. Here is a sample repository to test. https://github.com/asadbaidar/flutter_intune_project
Thanks, @asad-baidar for sharing the repo...I will try to reproduce the issue and update you...Thanks!
Hi @jitheshncxe, is there any update?
@jitheshncxe Issue resolved. I thought Flutter always uses FlutterApplication
instead of android.app.Application
, but it turns out it doesn’t so I can safely replace name
tag with com.microsoft.intune.mam.client.app.MAMApplication
. This fixed the crash and it is working well now. Closing the issue. Thank you.
<manifest
...
<application
...
android:name="com.microsoft.intune.mam.client.app.MAMApplication"
...>
>
Thank you so much for the update and sharing the solution @asad-baidar...!
Intune Android App SDK [Gradle Build Plugin] Issue with Flutter + Firebase
Summary
In Flutter Android app, when MAM is enabled it compiles and runs fine but when the inTune company portal is configured and we open the app, it crashes. When we remove Firebase dependencies then it works fine. no crash.
Details
Logs
Android Studio / Gradle Logs
Third-Party Library Dependencies
dart: ^3.4.4 flutter: ^3.24.0 firebase_core: ^3.0.0 firebase_messaging: ^15.0.0 firebase_crashlytics: ^4.0.0 firebase_analytics: ^11.0.0