App in background

Hi all,
with app inventor isn’t yet possible create app working in background?

1 Like

still no background support.

2 Likes

is it Still not possible?

@carto_lover Impossible. App Inventor 2 apps cannot run as a Service (in the background). MIT experimented for several years and tested a way to do it. In late 2018 Google changed their security requirements and made it impossible to implement background activities using the methodology with which MIT experimented. It is doubtful AI2 apps will ever be able to run in the background.

As a work around, either use a Stay Awake block routine using a Notifier

or you use Taifun’s Tools Extension: https://puravidaapps.com/tools.php

Using either an extension or a block routine drains your device battery rapidly . These work around methods are not running the app in the Background, they force the app
screen to stay open .

So STAYAWAKE to keep the Screen on.

Alternatively, code in a programming language that can compile an app as a Service. Examples are the professional Android Studio, B4A or Delphi Community Edition compilers.

Regards,
Steve

1 Like

It depends!
you can do it in some cases like sms receiving and call recieving.
( I have tried it! )

See here:

https://community.appinventor.mit.edu/t/backgroundtask-extension/13228

2 Likes

This page shows up as non existent or private. Could you provide another link? Thanks

Try here instead:

2 Likes

https://ullisroboterseite.de/android-AI2-KeepAlive-en.html

6 Likes

thank you for finding that page...
there are quite a few extensions available, which have been unknown up to now...
I now added them into the extensions directory...

Taifun

5 Likes