Running App in Background

Dear MIT APP Inventor Community,

I have 2 questions

  1. I have an app which have a .MessageReceived procedure which has a set condition that it will look for a string in received messages and will do a task if the string in native text messaging app matches with the one it was looking for. How can I make sure that my app will continue to run in background when it is not open in foreground. Code block is below:

  2. How can I initiate a procedure to lock cell phone when certain condition is met and also not by user interaction in the app but it will be also be initiated with receiving text message in native text messaging app? I have not build a code block for this yet.


Background Tasks extension [3.8 A] 🥳

I wasn't able to find anything relevant to your second question. It may be possible through
an extension
, although it's highly unlikely.

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