diff --git a/apps/mobile_app/lib/core/firebase_init.dart b/apps/mobile_app/lib/core/firebase_init.dart index 7cf70f7f..e8b35bb0 100644 --- a/apps/mobile_app/lib/core/firebase_init.dart +++ b/apps/mobile_app/lib/core/firebase_init.dart @@ -60,6 +60,7 @@ Future setupFirebase(EnvironmentEnum env) async { BrandLinksKeys.privacyPolicyUrl: 'https://savefamilygps.com/pages/politica-de-privacidad-reloj-gps-infantil-localizador-savefamily', BrandLinksKeys.corporateWebsiteUrl: 'https://www.savefamilygps.com/', + BrandLinksKeys.helpCenterUrl: 'https://savefamilygpshelp.zendesk.com/hc/es', BrandLinksKeys.supportEmail: 'info@savefamilygps.com', }); try { diff --git a/modules/legacy/modules/customer_service/lib/src/presentation/customer_service_screen.dart b/modules/legacy/modules/customer_service/lib/src/presentation/customer_service_screen.dart index 1cd51838..c97aedb6 100644 --- a/modules/legacy/modules/customer_service/lib/src/presentation/customer_service_screen.dart +++ b/modules/legacy/modules/customer_service/lib/src/presentation/customer_service_screen.dart @@ -51,9 +51,7 @@ class CustomerServiceScreen extends ConsumerWidget { SizedBox(height: SizeUtils.getByScreen(small: 10, big: 9)), SectionButton( onPressed: () async { - final Uri url = Uri.parse( - 'https://savefamilygpshelp.zendesk.com/hc/es', - ); + final Uri url = Uri.parse(BrandLinks.helpCenter); if (!await launchUrl(url)) { throw Exception('Could not launch $url'); } diff --git a/packages/sf_shared/lib/src/remote_config/brand_links.dart b/packages/sf_shared/lib/src/remote_config/brand_links.dart index a9fdd196..5864d9d9 100644 --- a/packages/sf_shared/lib/src/remote_config/brand_links.dart +++ b/packages/sf_shared/lib/src/remote_config/brand_links.dart @@ -5,6 +5,7 @@ class BrandLinksKeys { static const privacyPolicyUrl = 'privacy_policy_url'; static const corporateWebsiteUrl = 'corporate_website_url'; + static const helpCenterUrl = 'help_center_url'; static const supportEmail = 'support_email'; } @@ -17,6 +18,9 @@ class BrandLinks { static String get corporateWebsite => FirebaseRemoteConfig.instance .getString(BrandLinksKeys.corporateWebsiteUrl); + static String get helpCenter => + FirebaseRemoteConfig.instance.getString(BrandLinksKeys.helpCenterUrl); + static String get supportEmail => FirebaseRemoteConfig.instance.getString(BrandLinksKeys.supportEmail); }