Can you publish the blocks to play foreground using your new extension.
Thanks
Can you publish the blocks to play foreground using your new extension.
Thanks
Hi all, is there any suggestions about the extension?
Improve it to make it easy with fewer blocks or any other way you would recommend for creating functions, components else any better way of doing things..?
Hi How Can i Add An if to the app, like : if Time is 14:35 than send notification.
Greate Work!
Tapps
i see you already answered Thanks!
Yes, you can just set convert the time to to remaining milli seconds and pass it as the latency of the start service parameter.
Another exciting update is here with features and bug fixes!
There may be a few bugs in the release, if you find them, let me know
Periodic tasks
Wanted to run a task every interval? The periodic task is the choice!
Periodic tasks will run the service with the given interval with a minimum interval which is 15 minutes (after Android oreo). This functionality cannot be used with latency. Latency should be set to zero.
Boot listener
If you set the Id to "777" while using the above block, the tasks will be saved and be executed when the boot is completed.
Multiple events
Flags feature
Flags are to pass any extra values or to change the behaviour of the service. There are currently three flags.
FOREGROUND_IMPORTANT Marks the foreground state of the service as important using the internal API.
IGNORE_FIRST_PERIODIC_RUN Ignores the first periodic run which gets immediately fired when the service is started. Make sure to stop the service before starting it again if you are using periodic tasks, else it may misbehave.
ACTIVITY_NO_KILL The flag is to stop the tasks (like the player) from being killed when the app is alive and the service is being killed.
Change event values
Now you can change the invoke values before sending it to any function if you are using the ExtraFunction block to handle events.
For this, you will need to have a basic knowledge of Java. The same can be done to variables from now on. They will be changed when the result is true.
Deprecation
Download extension: com.kumaraswamy.tasks.aix (464.9 KB)
Great update!
Feature request
Alarm
A block to start the service with the exact instant provided. ID is the service Id that will get started when the alarm is fired.
Repeating alarm
Sets the repeating alarm for the service with the Id. Time is the instant. Interval is the time between each repeating alarm.
Cancel alarm
Cancels the pending/ongoing alarm. Also, cancel the service by CancelTask block.
Blocks to show a notification with alarm blocks.
The blocks are the same for App Inventor
Download extension: com.kumaraswamy.tasks.aix (467.4 KB)
ask the question,sorry
I want to use notifier in background
but it doesn't work
Here is my block code
Please help me
Hi, please update to the new version of the extension. It will not be needed to use the CreateComponentsOnUi block.
Resolve activity block is to ask for special permissions needed and it does not start the service. You are not starting it, so it doesn't run.
Also, the component "time" is redundant.
OK thank you for your reply,I remove the clock and resolve activity block,but it still not work,here is my current blocks
,if I lost any blocks please teach me how to finish it,thank you very muchUse this block. You are not starting the service.
Latency is set to 5000 ms.
It works pretty good,thank you answers me the question。thank you for your work
Nothing more than this fix
Download the extension: com.kumaraswamy.tasks.aix (468.3 KB)
Plz give permission to use in appathon
You can use it!
I, Kumaraswamy, attest that I am the author of the
Background Tasks extension, grant that the extension included in project
is free and that MIT has a non-exclusive irrevocable license to
republish the extension as part of the project file for the purposes of
the MIT App Inventor Appathon 2021.
hello sorry, can you show me your blocks? I too can't get SimpleNotification to work
i don't understand where this block goes ... i can't get it to work
Hi Iomedesimo, use that block at the last.