|
|
|
|
@ -231,7 +231,7 @@ class _LandingPageState extends State<LandingPage> 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<LandingPage> 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);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|