Skip to content

Initialization of the static member of FirebaseAnalytics(Unity) #741

Open
@std-forward

Description

@std-forward

we find this:
BAED4EB4-8B36-4B0B-B794-2BA659C41452

But I think we should use lazy initialization here, like this:
817A0C8A-06EF-49C1-800C-336D86305002

why do i report this issue:
we hava a analytics wrapper for FirebaseAnalytics, and there is a static map here:
BFE8C602-C3FA-44D2-A44C-6505DD205397
but when we use the public static member of FirebaseAnalytics, it constructs a FirebaseApp first, which is not expected, due to the static member FirebaseAnalytics.app
(As you say, we must check dependencies first, then construct the app~)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions