so i have this app, it starts like the first 2 times, but then after that it just doesnt, it gets stuck on its logo. The foregound service notification still shows up. I have included the Screen1 code, i am using itoo and melonNotifications extensions.
Please explain what your app is supposed to do
Do not use user interface components in the background, these do not exist there
Also that procedure CheckNStore in the background should only do something on the last day of the month
For this you like to keep a background process running every day? Does this make sense?
Taifun
ohhhk,
The app is basically to measure your daily carbon emissions.
I am running that procedure everyday becuase i also wanted to include the location change in that but then i realised i cant.
Thanks for all the help Taifun you legit run this place
hi, so i removed that label block, but now again i started the app and i got the same issue, i tried again but i removed the itoo create process vlock and then it worked, so like is there an issue in the extension, or like is my phone just blcoking it???
Get your example running in the foreground without using itoo
To keep the screen on you could use the KeepScreenOn method from the tools extension App Inventor Extensions: Tools | Pura Vida Apps
Your location blocks will not work in the background anyway
Taifun
ohhk, but like no way to use itoo?? Are there any possible fixes?
Well, you try to keep a clock running in the background which gets triggered every 5 seconds to check, if today is the last day of the month to then upload something to a spreadsheet, and in that last day of the month it will do that again and again every 5 seconds, for all other days it will do nothing
So I ask you again
Get your example running in the foreground first and read again my previous answers
I do not know why that happens
Remove everything unnecessary to probably then be able to find the issue
Taifun
isnt my app running in foreground only, sorry i am kinda new to mit app inv, but like when i run the app i get the notification, isnt that foreground???
i will try to run a simpler version by making a new file
so i ran the simple itoo project provided by itoo himself anddddddddddddd, the same thing happened lol, some issue with my phone ig
turns out the thing works on my mom's phone but decided to crash on my phone
that is very sed, i will try and reach out to Nothing about this issue
You mean this basic example also crashes on your Nothing? What's your Android version?
Also try replacing the URL with something actually valid and try again.