So , I have attached a python file which have only ui part of the app without the api calls for the privacy reasons.
I have build the whole app but after all this i have encountered some of the basic issues which i need to solve for the successful execution of the app.
Things to achieve :
1. Whenever I login , the text file is created which will have the refresh token because it will help in retrieving the the localid, idToken associated with it So now whenever i startup the app because the text file have a refresh tokenn i should call the api and save the data associated with it and then get the Main screen on starting up the app which i am not able to achieve.
2. When app is in background , i am not able to update the refresh token and it is neccesary to update on resume function because the opened screen if need to show some data of the user the refresh token can not be used as it is expired and then whats the point and one more thing the , when i am resuming the app the pre_enter function of the screen is not getting trigered , so even if i call an api for the new idtoken and refresh token , the screen of the app will not be getting called so there will not be any change.
3. So ,when i am logging in main screen gets called which have a child widget of screen manager class defined in python code referenced as id : after_login_manager which have other screen child widget . Different screens (utility and notification). Whenever i open main screen the utility screen gets called up but its pre enter function does not but the pre_enter function of main gets called up, so i want to call the utility screen after successful login which I am not able to achieve.
4. As the utility screen appeared as default when i am calling the main screen , then i want to update the x , y widget which label widget in the first screen of the screen manager in navigation layout i.e. Home screen which are referenced as
my_account_card_layout_total_account and my_account_card_layout_itachi_count
respectively , which i am not sure how i can update .
Issues which came during the solving the above problems:
1. When i am running this app , so i have three screen manager one as a parent screen manager and two are nested , so whenever i start my app in local machine , (on_pre_enter) function of the first screen of all the screen manager is running.
2. I am not able to access widgets of different classes from different classes as i want to update the x,y values in the Home screen which is inside the screen manager of NavigationLayout which the the child widget of Boxlayout inside Utility screen.
How i can solve this problems , during this i have realized all these problems and understood that these are sequential problems and i have also mentioned in sequentially. Please look into this and I will be obliged.