Open Source β€’ Background Tasks: Itoo πŸš€

thanks for the explanation about cicle1 signature and background component. I'll fix it later
Now, the problem is before

If the process executes call Web1.Get I see it from the server logs, but the process does not execute the Web1.Get call.

What am I doing wrong ?
It is correct that the get_notis procedure has the input "X" (signature)?
The initialize block is correct?
The get_notis procedure is correct?

I attach the screen with only the blocks I need to check if the process send the request to the server

P.s: the name cicle1 is the first that came to mind :slight_smile:

Yes

The block looks fine to me, what is the issue you are facing? Tell me in a sentence.

1 Like

the background process is not working
When open AI Companion for test in my huawei p30 not run any process in background and in the backend server not show any request.

You have to build the app to test it
Why are you using a timer interval of 500? Try 30000 as previously
Also add a Notifier.LogInfo block and check logcat

LogInfo(message)
Writes an information message to the Android log.

Taifun

3 Likes

Thanks, it works.
I build the app and magically it works.

Therefore, with the test from AI Companion it does not start the process.
Is there a way to test the process without building the app?

Thanks everyone and sorry for the waste of time

It is completely fine.


Itoo does not currently support running without building.

My friend, I am trying to donate to you using Paypal but I am getting an error. Could you send your email directly in my dm?

1 Like

MANY THANKS!!!! This really motivates me to continue the project!
I'll send you the link in DM.

7 posts were split to a new topic: TextToSpeech issues

To clarify, in your example "Notification Every Second", could the "evaluate and discard result" be replaced by some other reference to the Clock component such as:

Second question: Is such a preparatory call required only before an "itoo.RegisterEvent" which makes reference to the component? Or are there other itoo calls that require a preparatory component reference/call?

Thanks,
Randal

@Kumaraswamy , Hi, I am planning to create an app that gives continous alarm sound until the user stops it. This alarm sound will be heard as a Notification to the new email that says 'New order Recieved from a Customer'.

1 Like

You cannot use UI Components in the background.


You only need preparatory for before Itoo.RegisterEvent. If you have used any other block from that component, preparatory call isnt required.

It's because the component is only created when it's touched or accessed.


Nice idea

Opps! bad example...

... but thanks for answering the question I was trying to ask :slight_smile:

...and a question that I did not ask, but I was wondering about.

Looking forward to learning about and using itoo.

Kind regards,
Randal

1 Like

Hello,

I am an App Inventor user, and I want to record incoming calls in my application. However, I need to ensure that this process continues even when the application is closed. Therefore, I am considering creating a background service.

My Challenges:

  1. I need to create a service that continues to run in the background even when the application is closed.
  2. This service should constantly monitor and record incoming calls.

Seeking a Solution:

I need assistance on how to approach this with App Inventor. So far, here are the steps I've taken:

  1. I added the Itoo extension to my project.
  2. I created a background process using the "CreateProcess" block and placed it inside the "Screen1.Initialize" block.
  3. I wrote the necessary code within the background process to monitor incoming calls.

However, it seems that the background process is not running when I close the application.

Points Where I Need Help:

  1. What is the correct approach to create a background service with App Inventor?
  2. How can I ensure that the background service continues to run even when the application is closed?
  3. How can I monitor incoming calls within the background service?

Additional Information:

You can also use the images I provided to overcome this issue.

Thank you.

you forgot to create the PhoneCall component in the background before registering the event

also your procedure is save_call_logs and not save_call_logs_to_local

and f you want to store something in the background, let me suggest you to use the FetchProperty/StoreProperty blocks rather than a global variable/TinyDB

Taifun

1 Like

Hi @bay_max, thanks for the details, here are my suggestions:

  1. First get incoming call recording properly working normally without a background service.

  2. You have actually missed out on a few core concepts which the extension works on.
    You are not the only one and I dont fault you for this, I believe documentation isnt so beginner friendly (I'll have to work on a more comprehensive documentation when I get time).

    So one of the things you can do right now is, go through the earlier posts in the topic or perhaps try some simple examples with Itoo, maybe you can try creating a background process that will play a music every 10 secs? You could also try guides related to extension β€” like the Battery Checker by @Taifun

1 Like

Hello @Kumaraswamy ,

You have provided the AIA file codes for the application under the title "Battery checker reminding you to unplug when fully charged."

After I installed it on my phone, I realized that the application doesn't work when I close all the applications like in the pictures.

Isn't there a detailed training series about the Itoo extension? I'm new and can't understand it very well.

Thank you for your attention.

I would need more details, can you tell me about your Android version, device name and model? You actually have to click the Start Process button (which I assume you did)


Unfortunately there isnt any detailed training series on the extension. I can understand your problem, It's really hard for beginners to understand how the extension works...

Only thing you can do is look at what other's have done in the pasts by exploring previous posts.

You can also check at extension references below the first post:

You'll get some examples and guides demonstrating the use with Itoo extension there.

1 Like

@Kumaraswamy
I pressed the start button in the battery charging application, of course. :slight_smile:
It was working while the application was open. However, it didn't work when I closed all the applications.

And I'm sharing a screenshot of the information related to the phone. I will also examine the sample applications you sent.

1 Like

Aha, it's Xiaomi :wink:
You may need to turn off some by default enabled battery optimizations on your device: Xiaomi | Don’t kill my app!

Check for device's battery optimization and app specific optimizations.


Do you see the notification still exist when you close the app?