Skip to content

[firebase_remote_config]: lastFetchTime is factor 1000 too small on iOS #17998

@gianlucaschoefer

Description

@gianlucaschoefer

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

Remote Config

Which platforms are affected?

iOS

Description

As you can see here, the intended multiplication by 1000 of lastFetchTime is not happening as the factor only applies when config.lastFetchTime is null (which doesn't take effect because of the multiplication with 0).

See relevant line here
"lastFetchTime": Int(config.lastFetchTime?.timeIntervalSince1970 ?? 0 * 1000)

This results in iOS clients receiving a microseconds timestamp which is too small by factor 1000.

Reproducing the issue

  1. Check FirebaseRemoteConfig.instance.lastFetchTime on iOS
  2. Confirm the timestamp is too small by factor 1000

Firebase Core version

4.4.0

Flutter Version

3.38.3

Relevant Log Output

Flutter dependencies

No response

Additional context and comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions