Skip to content

[firebase_app_installations]: GetId loads forever on iOS #13240

Closed
@Colman

Description

@Colman

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

App Installations

Which platforms are affected?

iOS

Description

When calling the FirebaseInstallations.instance.getId() function in series it works. However, when calling it in parallel, it hangs forever.

Reproducing the issue

This never completes:

await Firebase.initializeApp();

final tasks = <Future<String>>[];
for (var i = 0; i < 30; i++) {
   tasks.add(FirebaseInstallations.instance.getId());
}

await Future.wait(tasks); //Never completes

However, this does complete:

await Firebase.initializeApp();

for (var i = 0; i < 30; i++) {
   await FirebaseInstallations.instance.getId();
}

Firebase Core version

3.4.0

Flutter Version

3.22.2

Relevant Log Output

No response

Flutter dependencies

Expand Flutter dependencies snippet
  firebase_app_installations: 0.3.1
  firebase_analytics: 11.3.0
  firebase_core: 3.4.0
  firebase_crashlytics: 4.1.0
  firebase_remote_config: 5.1.0

Additional context and comments

No response

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