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?

rednuht
  • 1,724
  • 16
  • 27
  • 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](https://github.com/flutter/flutter/issues/28397). Something we could follow up. – shadowsheep Feb 25 '19 at 11:55
  • 1
    Also filed an [issue](https://github.com/firebase/firebase-android-sdk/issues/254) to ask for explanation. – shadowsheep Feb 25 '19 at 12:08

2 Answers2

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.

shadowsheep
  • 14,048
  • 3
  • 67
  • 77
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);
    }
  }
BIS Tech
  • 17,000
  • 12
  • 99
  • 148