We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61783bd commit 9d565acCopy full SHA for 9d565ac
lib/state/chats/chatState.dart
@@ -84,9 +84,12 @@ class ChatState extends AppState {
84
await remoteConfig.fetch(expiration: const Duration(hours: 5));
85
await remoteConfig.activateFetched();
86
var data = remoteConfig.getString('FcmServerKey');
87
- if (data != null) {
+ if (data != null && data.isNotEmpty) {
88
serverToken = jsonDecode(data)["key"];
89
}
90
+ else{
91
+ cprint("Please configure Remote config in firebase", errorIn: "getFCMServerKey");
92
+ }
93
94
95
/// Fetch users list to who have ever engaged in chat message with logged-in user
0 commit comments