Android Firebase Remote Config: Application name is not set. Call Builder#setApplicationName
Asked Answered
N

2

13

Whenever I call FirebaseRemoteConfig.getInstance(), I get this warning:

W/zze: Application name is not set. Call Builder#setApplicationName.

I've updated the json config file from Firebase, but it remains the same. It does not affect any functionality, but I can't help but think something is missing. Any configurations I might be missing somewhere?

Northey answered 19/2, 2019 at 12:46 Comment(2)
I've got the same warning too (using RemoteConfig), and I can confirm that all works fine. I've found something also in Flutter repo issues. Something we could follow up.Falcate
Also filed an issue to ask for explanation.Falcate
F
1

This warning has been solved in firebase-config 19.0.2.

So if you upgrade the library to this version:

implementation 'com.google.firebase:firebase-config:19.0.2'

the warning disappears.

Anyway even if this warning polluted our log messages, applications using the previous versions of firebase config did behave as expected.

Falcate answered 14/10, 2019 at 14:13 Comment(0)
J
0

this is working for me. I use Flutter project

adding await remoteConfig.fetch(expiration: const Duration(seconds: 0)); and await remoteConfig.activateFetched();

  void _adminValidate() async {
    try{
      final RemoteConfig remoteConfig = await RemoteConfig.instance;
      await remoteConfig.fetch(expiration: const Duration(seconds: 0));
      await remoteConfig.activateFetched();
      print(remoteConfig.getString('admin'));
    }catch (e){
      print(e);
    }
  }
Jacobson answered 14/10, 2019 at 10:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.