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
All checks were successful
Deploy Flutter to Firebase (Mac) / deploy-android (push) Successful in 2m53s
This commit is contained in:
@@ -116,7 +116,15 @@ class ActivityPlacesService {
|
|||||||
LoggerService.error(
|
LoggerService.error(
|
||||||
'ActivityPlacesService: Clé API Google Maps manquante',
|
'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);
|
final encodedDestination = Uri.encodeComponent(destination);
|
||||||
|
|||||||
Reference in New Issue
Block a user