From 147fb6cee8e1cdd6ee5bf2bbdf773c6ac8d08adf Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Thu, 5 Sep 2024 09:36:06 +0300 Subject: [PATCH] updates --- google-services_old.json | 47 +++++++++++++++++++++++++ lib/pages/landing/landing_page.dart | 2 ++ lib/uitl/push-notification-handler.dart | 2 ++ 3 files changed, 51 insertions(+) create mode 100644 google-services_old.json diff --git a/google-services_old.json b/google-services_old.json new file mode 100644 index 00000000..5806fa5f --- /dev/null +++ b/google-services_old.json @@ -0,0 +1,47 @@ +{ + "project_info": { + "project_number": "815750722565", + "firebase_url": "https://api-project-815750722565.firebaseio.com", + "project_id": "api-project-815750722565", + "storage_bucket": "api-project-815750722565.appspot.com" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:815750722565:android:62281cd3e5df4063", + "android_client_info": { + "package_name": "com.ejada.hmg" + } + }, + "oauth_client": [ + { + "client_id": "815750722565-3a0gc7neins0eoahdrimrfksk0sqice8.apps.googleusercontent.com", + "client_type": 3 + } + ], + "api_key": [ + { + "current_key": "AIzaSyDUfg6AKM1-00WyzpvLImUBC46wFrq9-qw" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [ + { + "client_id": "815750722565-3a0gc7neins0eoahdrimrfksk0sqice8.apps.googleusercontent.com", + "client_type": 3 + }, + { + "client_id": "815750722565-0cq9366orvsk5ipivq6lijcj56u03fr7.apps.googleusercontent.com", + "client_type": 2, + "ios_info": { + "bundle_id": "com.void.demo" + } + } + ] + } + } + } + ], + "configuration_version": "1" +} \ No newline at end of file diff --git a/lib/pages/landing/landing_page.dart b/lib/pages/landing/landing_page.dart index 256662a3..bca71d32 100644 --- a/lib/pages/landing/landing_page.dart +++ b/lib/pages/landing/landing_page.dart @@ -342,6 +342,8 @@ class _LandingPageState extends State with WidgetsBindingObserver { checkUserStatus(token); } } + }).catchError((err) { + print(err); }); startZoom(); // HMG_Geofencing(context).loadZones().then((instance) => instance.init()); diff --git a/lib/uitl/push-notification-handler.dart b/lib/uitl/push-notification-handler.dart index 8d730102..f1c53bbe 100644 --- a/lib/uitl/push-notification-handler.dart +++ b/lib/uitl/push-notification-handler.dart @@ -356,6 +356,8 @@ class PushNotificationHandler { FirebaseMessaging.instance.getToken(vapidKey: 'BHRJG8sIzcysWxPw3B6xQjz_85nUuCfU6EAmpH18kyUTmB2cj35IdFwCyWSab80SA1v6oBSWVh-p6PcHPw_y00Y').then((String? token) { print("Push Notification getToken: " + token!); onToken(token!); + }).catchError((err) { + print(err); }); FirebaseMessaging.instance.onTokenRefresh.listen((fcm_token) {