Running a background task or a service in AppyBuilder


#1

Greetings,

I have several apps on the Google Play store and would like to redo all of them in Appybuilder because it will be easier to maintain them. They all use a service module to keep them running in the background. One of the apps is a clock chiming app with a lot of features. I would first like to redo that one in AppyBuilder if background tasks or services are supported.

If this is supported, please do point me to an extension and / or the blocks required to start the service.

Maybe an alarm manager extension that calls or runs an AppyBuilder app or a code block would help.

Thanks.

Truly,
Emad


#2

Those are not supported.

Please also read this
https://community.appybuilder.com/t/appybuilder-kodular/30663/30


#3

Hi Peter,

How about an alarm manager extension?

Truly,
Emad


#4

Apps have to run in the foreground not the background.


#5

Hi Peter,

Does AppyBuilder have an alarm manager extension? I already looked at the clock blocks but I’m not sure the clock will be ticking if the user taps the phone home button making the app loose focus.

Truly,
Emad


#6

So you can not make what you want.


#7

Hi Peter,

It’s a shame about that. I do hope they will implement that functionality soon. If they do I will be a very busy beaver rewriting my apps. :yum:


#8

In about 0-? years

/Boban


#9

see here https://groups.google.com/d/msg/mitappinventortest/JiLxe2g24VQ/J1LaBGOdBQAJ why this will most probably not happen

The approach we were taking with services doesn’t work with later versions of Android. One cannot naively run code in the background, as Android will just shut it down in order to preserve phone battery. Instead one has to interact with a complex SDK to run code when an App isn’t in the foreground. It doesn’t translate very well into our current services model.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.


#10

Hi Taifun,

I hope you will do an extension or something we can easily use because it’s already built into Basic4Android (B4A). I want to migrate away from B4A and do everything in AppyBuilder.

To be able and run a service in AppyBuilder like IN B4A and have blocks in that service process some procedures, etc would open up so many new types of apps everyone can build with AppyBuilder.

Truly,
Emad


#11

This won’t be possible until App Inventor builds it in.

Did you read this?


#12

Hi Peter,

Just read it. That would also explain why I couldn’t make an apk file as well.

I just signed up with Kodular. Can I also ask about running services on the Kodular community forum?

Truly,
Emad


#13

No, the online builder is already weeks unavailable. There was a offline version available. That has nothing to do with the merging of Kodular and AppyBuilder.


#14

There is not a builder that is able to do that. Like i said. App Inventor will be have to be the first to make that and then other builders can use it.


#15

This post was flagged by the community and is temporarily hidden.


#16

What update?..