Skip to content

Trying to initialize FCM although not using Firebase #608

@ori-6over6

Description

@ori-6over6

After upgrading mixpanel from version 4+ to 5.6.4 my app crashes on launch.
The exception I'm getting is IllegalStateException: Default FirebaseApp is not initialized in this process com.sixoversix.copyglass. Make sure to call FirebaseApp.initializeApp(Context) first when calling MixpanelAPI.getInstance(context, token);
I'm not using firebase in this app so I didn't expect Mixpanel SDK to do firebase related initializations.

When debugging the code I saw that the firebase initialization is executed because the function checkPushNotificationConfiguration returns true.
When further debugging I saw it returns true because I'm using a different sdk (intercom) which internally uses firebase.

See screenshot for clarifying what I found in debug:
Screen Shot 2019-07-15 at 2 25 37 PM

Please let me know what can I do to overcome this.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions