Let me suggest you to first get your app running in the foreground
Also read again more about background processing, see especially the first post here Open Source • Background Tasks: Itoo 🚀
There is no user interface in the background... it looks like you display the downloaded data in labels... this will not work in the background...
Then be clear about what exactly should happen in the background...
For example every hour download weather data automatically in the background and send a notification to the user
To send notifications in the background use itoo together with 🔔 MelonNotification • Various styled notifications + Itoo
To trigger some functionality regularly from the background (for example every hour) you could use the alarmmanager extension together with itoo... App Inventor Extensions: Alarm Manager | Pura Vida Apps
The advantage is, you then do not have to display a persistent notification for background processing ..
Taifun