Pedometer work in background

Before I get too far into planning a project. Does the pedometer still only work when the app is open?



Yes, it should work only when the app is open Rick . App Inventor 2 apps do not run as Services, that means they do not run in the background. However,see my last comment which suggests the pedometer might keep counting when the screen sleeps.

What you can do is prevent the screen from closing using a Stay Awake routine .

A Stay Awake block routine using a Notifier

or use Taifun’s Tools Extension:

Be aware 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. Using these routines for reasonable periods works fine and will keep your pedometer working during your hike.

Here is an old Forum post that seems to indicate that a pedometer might keep counting when it is not visible in the screen . You can experiment with the advice. Perhaps this will work as you hope. Let us know what you discover.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.