diff --git a/lib/pages/landing/landing_page.dart b/lib/pages/landing/landing_page.dart index 58be5845..80130a3b 100644 --- a/lib/pages/landing/landing_page.dart +++ b/lib/pages/landing/landing_page.dart @@ -231,7 +231,7 @@ class _LandingPageState extends State with WidgetsBindingObserver { locationUtils = new LocationUtils(isShowConfirmDialog: false, context: context); WidgetsBinding.instance.addPostFrameCallback((_) { - if (projectViewModel.isLogin) { + if (projectViewModel.isLogin && !projectViewModel.isLoginChild) { familyFileProvider.getSharedRecordByStatus(); } }); @@ -253,7 +253,10 @@ class _LandingPageState extends State with WidgetsBindingObserver { sharedPref.setString(PUSH_TOKEN, token); if (token != null) { DEVICE_TOKEN = token; - checkUserStatus(token); + if (!projectViewModel.isLoginChild) { + checkUserStatus(token); + } + // if (projectViewModel.isLogin) this.getNotificationCount(DEVICE_TOKEN); } });