fix: enhance missing Google Maps API key error message with debug details including available keys and platform information.
All checks were successful
Deploy Flutter to Firebase (Mac) / deploy-android (push) Successful in 2m53s

This commit is contained in:
Van Leemput Dayron
2025-12-30 16:23:56 +01:00
parent 5a682bb6d7
commit 993a5870c5
2 changed files with 11 additions and 3 deletions

View File

@@ -116,7 +116,15 @@ class ActivityPlacesService {
LoggerService.error(
'ActivityPlacesService: Clé API Google Maps manquante',
);
throw Exception('Clé API Google Maps non configurée');
// Debug: Lister les clés disponibles pour comprendre le problème
final availableKeys = dotenv.env.keys.join(', ');
throw Exception(
'Clé API Google Maps non configurée. Clés disponibles: [$availableKeys]. Platform: ${Platform.isAndroid
? 'Android'
: Platform.isIOS
? 'iOS'
: 'Autre'}',
);
}
final encodedDestination = Uri.encodeComponent(destination);