The ability for people to create an application that will then start a service on the android device to fully run in the background.
Currently only 'background' mode is supported the ability to be able to write an app that could then start a service would allow some of the more creative apps that interact with SMS's or calls to run all the time even when the phone is not awake. This would also solve the issues users are having with timers being suspended when the device is suspended and breaking the desired functionality of an app.
Comment #1
Posted on Oct 7, 2010 by Quick Panda(No comment was entered for this change.)
Comment #2
Posted on Oct 11, 2010 by Helpful LionDon't know about it running as a service, but running in the background would be great. Having your app no longer running when you try to recall it later because android killed it in the background is a pain.
Comment #3
Posted on Oct 13, 2010 by Happy BearThis would be great. We need an option to make an app run and start in the background only and only pop up when needed. Also it would need to autorun when turning on the phone.
Comment #4
Posted on Oct 18, 2010 by Grumpy MonkeyBe able to tell the app to keep running even if the phone sleeps. I made a quake detector app that sounds when there is an earthquake (via the accellerometer) but it is suspended when phone locks and screen is turn off.
Comment #5
Posted on Oct 22, 2010 by Happy CatI would use this feature to monitor the current gps location and signal events based on proximity.
Comment #6
Posted on Oct 31, 2010 by Grumpy ElephantI've been trying to make an alarm style application and its really annoying that you can't use the phone for anything else if you want that app to keep on running
Comment #7
Posted on Nov 14, 2010 by Grumpy BirdNeed this feature as well (auto start application, fully in background, no screen popping up, continue running when phone goes to sleep) for a LBS.
Comment #8
Posted on Dec 8, 2010 by Helpful RhinoThis would be great. So you don't need your app on the screen for it to function, either a service or running in the background!
Comment #9
Posted on Dec 15, 2010 by Swift KangarooAll kind of things to be done...hook up to Google Calendar...background services, wifi?
Comment #10
Posted on Dec 24, 2010 by Helpful BearThis feature would be most welcome! One of the apps I am working on needs this. The planned implementation would be to receive a specially coded sms signaling the service to access the tinywebdb component and download the appropriate data (for my service techs on the road). Currently, this only works while the app has focus. This would be a real life saver!
Comment #11
Posted on Jan 5, 2011 by Happy LionEven people who dont know they want this feature want this feature!
Comment #12
Posted on Jan 13, 2011 by Helpful MonkeyYes, it would be really great if an application would be at least able to stay in backgound!
Comment #13
Posted on Jan 13, 2011 by Quick LionAs a workaround you can use app inventor to start a background process.
If you use SL4A you can program a background process in for example python.
For more info: http://code.google.com/p/android-scripting/wiki/AppInventor
Comment #14
Posted on Jan 23, 2011 by Massive Horse4 month old ticket, but i will chime in here... This is NEEDED by many. Between this issue and the contact picker issues, "App Inventor" is useless to me, i think i will be having to go back to IDE with Android packages.
Comment #15
Posted on Jan 28, 2011 by Grumpy MonkeyIssue 21 has been merged into this issue.
Comment #16
Posted on Feb 15, 2011 by Quick Rabbitdefinately need this, to keep countdown timer running once set in my app
Comment #17
Posted on Feb 15, 2011 by Grumpy WombatNeed this ability so app can monitor events even when phone sleeps
Comment #18
Posted on Feb 25, 2011 by Grumpy MonkeyIt's crucial feature to implement many brilliant ideas!!!!
Comment #19
Posted on Feb 26, 2011 by Happy BearRunning in background, start in background and autorun is very much needed.
Comment #20
Posted on Feb 27, 2011 by Massive CamelRunning in background is really needed.
Comment #21
Posted on Feb 28, 2011 by Quick PandaWe agree! I've wanted this myself on several occasions. It is mostly a matter of when we have time to do it.
Comment #22
Posted on Feb 28, 2011 by Massive HorseYea i know, it has only been about 6 months... And it has been almost as long since a "project member" has mentioned anything. Multiple comments & #6 out of 800+ current items in amount of times starred. Not sure why time cant be made to actually start working on it.
Comment #23
Posted on Feb 28, 2011 by Helpful Elephant@austin: Just because we star an issue doesn't put it at the top of the list. Google have their own priority list of things to get done. You've waited this long for it; keep the faith: it's coming.
Comment #24
Posted on Mar 2, 2011 by Helpful KangarooSorry to be a bore, but im onto my 2nd app and really need a way of auto starting my app when the phone switches on.
Comment #25
Posted on Mar 2, 2011 by Grumpy BirdThis is the best interesting feature thtat I'm waiting
Comment #26
Posted on Mar 2, 2011 by Massive HorseUse netbeans or eclipse lol, thats about the best answer you will get. This issue isn't even started so out will be months out
Comment #27
Posted on Mar 2, 2011 by Grumpy Monkey@austin: Can we use eclipse for App Inventor? If we can make code in Java, we never see the App Inventor, which means we are came here since we cannot to do that you referenced...
Comment #28
Posted on Mar 2, 2011 by Massive HorseDepending on your computer skills, memory retainment, etc you could learn how to do things in JAVA that AI is doing in the amount of time it takes for the Google team to have everything everyone needs to make apps.
Believe me, this issue & issue 202 are why i do not use AI. AI is much more user friendly because it provides a UI instead of straight codes.
But if you need full features, using arrays and dynamics, this issue & #202, etc you are going to have to do as i suggested and work with another IDE until it is added here, which as i said will be months (based on the rate of change of the status's)
Comment #29
Posted on Mar 20, 2011 by Happy Bearneed it
Comment #30
Posted on Apr 1, 2011 by Grumpy Wombatgimme gimme gimme please
Comment #31
Posted on Apr 15, 2011 by Swift GiraffePlease address this Google gang. This fix would vastly increase the range of functionality for simple apps. Properties->Run in background. Thanks.
Comment #32
Posted on Apr 24, 2011 by Grumpy LionI have built several apps that listen for incoming text messages. Upon receiving certain text messages from specific contacts the user has previously specified, the app does certain things. Right now if the user launches a different app or reads an email for too long the app loses all of its functionality. All temporary variables are lost as well.
I have tried using timers in every combination possible to keep reviving the app and resetting the variables from values in tinyDB. That seems to extent the life somewhat but not for longer than about 20 minutes.
I also tried using activity starter to open .Sceen1 upon arriving at a date or time or upon receiving a text message but that caused duplicate instances of the app and it crashed. It would open the app but stay blank until it crashed when temporary variables where active. After that it did not work at all.
Without this function it is impossible to make any app that relies on date and time to execute a function like clocks, date based calculators, alerts, etc. etc.. It also makes it difficult to make apps that do cool stuff while the user is busy doing something else. This is extremely important IMO and I wonder why it has not been submitted before that I can see.
I also noticed in debug mode my AI apps show zero use of the system cache. Not sure if this is related or if it is just a handler type that needs to be added.
Comment #33
Posted on May 26, 2011 by Quick PandaPlease be patient, folks. We know that this is an important feature for lots of apps and we will add it. It is not a trivial change to App Inventor and it interacts with other advanced features that we are working on so it requires some thought and work. We will get to it!
Comment #34
Posted on May 26, 2011 by Grumpy LionVery much appreciated. Hope I didn't sound negative or complaining. We all very much appreciate the hard work you are doing. :)
Comment #35
Posted on Jun 4, 2011 by Happy RhinoThe app that I am making with App Inventor currently requires the user to have it open to use it.
Due to the nature of the app, it's almost useless unless I can allow it to run in the background because the user shouldn't need to keep it open.
Comment #36
Posted on Jun 16, 2011 by Quick DogI agree this would be most beneficial for alot of us.
Comment #37
Posted on Jun 30, 2011 by Massive LionWow... this is exactly what I was looking for. Glad it's in the queue. Wonderous ideas for apps that can only work if able to perpetually run in the background (or, as a service). Thanks for all your hard work, App Inventor team!!!!
Comment #38
Posted on Jul 4, 2011 by Quick DogIt would definitely move AI a step up.
Comment #39
Posted on Jul 5, 2011 by Grumpy OxI need support for this too in my app! I have a lot of downloads already for my app and it would make the app even better with this option! Thanks guys! :)
Comment #40
Posted on Jul 10, 2011 by Swift CatIssue 1693 has been merged into this issue.
Comment #41
Posted on Jul 20, 2011 by Grumpy Elephantputting my name down here as well!
Comment #42
Posted on Jul 31, 2011 by Happy Dog+1 on this issue allowing to keep running an application in the background is highly needed. there would be thousands of new possibilities with such feature; for instance: - play an alarm sound when the accelerometer detects movement or play the alarm sound when receiving a message with an specific text (pretty useful to avoid the decide being stolen).
Comment #43
Posted on Aug 3, 2011 by Massive GiraffeWaiting for this implementation (app runs in background, no need for app's interface) ... I hope it's coming soon
Comment #44
Posted on Aug 21, 2011 by Helpful Elephanti really need dis!!!
Comment #45
Posted on Sep 14, 2011 by Swift CatI am also trying to develop a location aware application, that becomes pretty useless when the app goes to sleep / dies in the background...can't wait for this feature!
Comment #46
Posted on Sep 14, 2011 by Swift CatComment deleted
Comment #47
Posted on Sep 20, 2011 by Happy MonkeyI want this for regular checks of web component and vibrate phone + taskbar icon when new item comes in.
Comment #48
Posted on Sep 20, 2011 by Happy MonkeyI want this for regular checks of web component and vibrate phone + taskbar icon when new item comes in.
Comment #49
Posted on Oct 9, 2011 by Happy Rabbitdesperately needed !!!!
Comment #50
Posted on Oct 10, 2011 by Grumpy Monkey+1 need this ASAP. Shame its taking so long :(
Comment #51
Posted on Oct 10, 2011 by Grumpy PandaGoogle ended App Developer. While they are open sourcing it and someone else may add this feature, Google will not.
Comment #52
Posted on Oct 10, 2011 by Grumpy MonkeyUse Basic4Android, I needed this and was really easy to accomplish.
Comment #53
Posted on Oct 10, 2011 by Swift HorseSame here, basic4android is really great
Comment #54
Posted on Nov 7, 2011 by Happy HorseReally wating for that, run in backgroung mode.
Comment #55
Posted on Nov 12, 2011 by Helpful OxIn the Blocks editor, there is a new tab called "Advanced", which contains functions with "Any" preceeding their names. Where can I find more information about these functions?
Comment #56
Posted on Nov 22, 2011 by Swift CatHas there been any progress with this? It would be really great to have an indication if this is actively being worked on and if so roughly the timeline that we might see this by.
Thanks
Comment #57
Posted on Nov 27, 2011 by Helpful RabbitI am just waiting for this "feature"...
Comment #58
Posted on Dec 13, 2011 by Grumpy MonkeyIts Great huh!
Comment #59
Posted on Dec 24, 2011 by Quick CamelReally waiting for run in backgroung mode!
Comment #60
Posted on Jan 31, 2012 by Quick DogWaiting
Comment #61
Posted on Mar 11, 2012 by Swift DogI need this. Still Waiting.
Comment #62
Posted on Mar 14, 2012 by Helpful OxIssue 1484 has been merged into this issue.
Comment #63
Posted on Apr 3, 2012 by Quick CatI can´t believe this feature hasn´t been implemented yet. Is there any hope?
Comment #64
Posted on Apr 9, 2012 by Quick PandaOpen sourcing App Inventor and moving the project out of Google and into the MIT Center for Mobile Learning was a huge effort that pretty much occupied the entire App Inventor team for many months. Many desirable new features (like this one) were put on hold while that transition happened. Now that the MIT server is up and open to everyone, we are again starting to prioritize new features. Hopefully this one will come to the top of the list soon. I sympathize with your frustration!
Comment #65
Posted on Apr 10, 2012 by Grumpy LionYeah!!!!!
Comment #66
Posted on Apr 24, 2012 by Grumpy LionComment deleted
Comment #67
Posted on Apr 24, 2012 by Grumpy LionAny news yet on the background feature?
Comment #68
Posted on Apr 24, 2012 by Grumpy LionComment deleted
Comment #69
Posted on May 10, 2012 by Quick DogReally would like to see this feature added! Thanks for all the hard work AI team!
Comment #70
Posted on Jun 18, 2012 by Quick OxI think using Activity Starter you can do some scripting... checkout this http://code.google.com/p/android-scripting/wiki/AppInventor this will help running in the background
Comment #71
Posted on Jul 9, 2012 by Massive HippoAgree. Also am interested in periodic wake-up to check GPS proximity calculation.
Comment #72
Posted on Jul 26, 2012 by Happy Oxneed this for my texting app so the app opens when you get a text
Comment #73
Posted on Aug 1, 2012 by Helpful RabbitOk, add me to the pile of "Yes, please". The ability to have the app periodically execute a routine would be enormously useful.
Now, having said that - GREAT job on the whole App Inventor approach, I cannot believe how helpful this is to app development. I have drafted in days what would have taken weeks, possibly months. WELL Done!
Comment #74
Posted on Aug 3, 2012 by Quick BearI need this feature too. Thanks.
Comment #75
Posted on Aug 15, 2012 by Massive RhinoHal and Jos from MIT are currently asking in the App Inventor forum:
We've been reluctant to put in general services because we want to keep App Inventor simple, and not force users to think about "services" versus "regular apps". Instead, we're trying to take an approach where there are components that have internal services, and these components sit in ordinary apps in a way that the app will not be killed.
This turns out to be hard to do, and we might not be able to pull this off. But to help us, we'd like to know the main examples for which you and other App Inventor users would like services for.
Therefore please write your examples to that thread https://groups.google.com/d/topic/programming-with-app-inventor/8IpnXEq-7Ic/discussion Thank you. Taifun
Comment #76
Posted on Aug 28, 2012 by Quick RabbitHi all,
as discussed in the forum (see previous comment from Taifun) we are working on alternative ways to 'bake in' Services-like functionality inside certain components (such as Twitter and Texting).
We are also working on making it easy for advanced AI devs (with Java knowledge) to write their own components that can leverage virtually any feature of the SDK. More information pretty soon!
As an aside, I just want to make clear that I do not work for MIT; I'm involved in the development team as a volunteer in this open source project.
Comment #77
Posted on Aug 28, 2012 by Grumpy LionAwesome !!!!!!
Comment #78
Posted on Aug 28, 2012 by Swift KangarooThank you. Please let us know. The possibility of building our own AI components for students is very exciting indeed.
Comment #79
Posted on Sep 14, 2012 by Swift PandaWell all I really want is the ability to run my app on startup and run in the background. Would it not be easier to get Android to add a startup folder like windows has or am I missing the point?
Comment #80
Posted on Sep 14, 2012 by Quick RabbitHi there, I am afraid it is not as easy as that. The app has to be programmed to be started by the system, and running on the background has to be done through certain techniques in the SDK too. We are finishing up the documentation to allow developers to create their own components, and this will allow using those parts of the SDK not currently supported by AI.
Thanks!
Comment #81
Posted on Sep 18, 2012 by Quick RabbitIssue 2277 has been merged into this issue.
Comment #82
Posted on Oct 6, 2012 by Helpful HorseI make an app & I just need it to run abot 15 minutes. It has a timer & after 15 minutes, it makes a sound. When screen locks, as we all know, the timer stops. So, when it comes to "just for a limited time (like 15 or mox 20 minutes), maybe it's a good point to start. A permission may be asked to the user of course. As everybody waited for so long for this, I think, at least, this can be done for a start...
Comment #83
Posted on Oct 8, 2012 by Grumpy Elephantsign
Comment #84
Posted on Oct 9, 2012 by Swift RhinoHaving ability to run in background is essential. My app looks at incoming sms and responds, but it shuts down before it can become very effective. The "I'm Driving" SMS example simply stops working after a short time!
Comment #85
Posted on Oct 14, 2012 by Helpful WombatPLEASE PLEASE add this feature of running the AI's apps in the background. I need to keep a Bluetooth connection "alive" and keep the app making GET actions from a web server and I can't because when the screen goes to sleep, it all ... stops!!
Comment #86
Posted on Oct 16, 2012 by Swift PandaMy Alarm app is useless as the timers stop when the phone sleeps. I have the feeling this will never be solved in AI it seems to have been going on for a long time, over two years with no solution imminent. Please guys we really want this, heck you can get a rover on mars but can't prevent a timer from stopping.
Comment #87
Posted on Oct 18, 2012 by Happy PandaI made an sms app in AI, that checks for keywords on received sms. If the keywords match, the AI app places the lat, long, message on screen, and save it in DB. Then the user can press a button, and it opens the navigator software to that given coordinates. Well, so far so good, but when the navigator open it kills my AI app, so I can´t receive new coordinates/messages and/or store it in db. Please make this possible, I think is a very useful and important feature to the growth of IA.
Comment #88
Posted on Oct 22, 2012 by Quick RabbitHi all,
the final open source announcement was done today, please have a look at: https://groups.google.com/group/app-inventor-announcements/browse_thread/thread/955f0041db1bce7d
We will be adding an example of background processes (probably Broadcast Receivers) soon.
Enjoy!
Comment #89
Posted on Nov 10, 2012 by Quick RabbitHi again,
a new Texting component that can receive messages in the background and create notifications can be seen in the latest source changes in github. Documentation is still not out, but you can have a look at the sources: http://appinventor.mit.edu/appinventor-sources/
This will be released shortly in the MIT server.
cheers!
Comment #90
Posted on Nov 12, 2012 by Swift RabbitI'm trying to build a simple siri app, it would be nice to have it become active by a specific gesture, run and listen for instructions all in the background this is what I would use it for
Comment #91
Posted on Nov 23, 2012 by Quick Oxditto 2 all comments above
Comment #92
Posted on Nov 23, 2012 by Happy DogHi all. The only solution I found for this issue was to use a small application that keeps the screen always "on" and allows you to dim it to save some juice (I use a 2700mAh compatible battery anyway).
Comment #93
Posted on Dec 11, 2012 by Helpful DogHas anyone find a solution now? im developing an app but the app is not listening if it is not in the main screen once in click on home button. the app is an sms app the converts receive sms to speech...
Comment #94
Posted on Dec 16, 2012 by Massive RhinoMeanwhile I created a small Java app which is running in the background and can start an App Inventor app after a trigger SMS has been received, more info see here http://puravidaapps.com/sms-receiver.php Taifun
Comment #95
Posted on Dec 17, 2012 by Massive GiraffeClever !
Comment #96
Posted on Feb 22, 2013 by Helpful Dogthanks taifunbear...its something! nice workaround.
Comment #97
Posted on Feb 25, 2013 by Quick BearComment deleted
Comment #98
Posted on Feb 25, 2013 by Quick BearComment deleted
Comment #99
Posted on Feb 25, 2013 by Quick Beartaifunbear this application is very nice. But we can do it without sms. Can we control the application, for example in 1 minute? Can we open if it is closed?
Comment #100
Posted on Feb 25, 2013 by Massive Rhino@ayanmuca... the issues list is not the best place to discuss that. Please post in the forum https://groups.google.com/forum/#!forum/programming-with-app-inventor Taifun
Comment #101
Posted on Mar 17, 2013 by Helpful LionComment deleted
Comment #102
Posted on Mar 17, 2013 by Helpful LionHas there been any updates to this issue? I have a tinker phone that I have been using for various projects. I'm currently trying to send my phone up in a balloon. I have a 555 timer on a separate camera to take pictures. All I need the phone to do is check if it's moving every 4 minutes or so, and if it isn't, it will send a text to my personal phone.
Id really like to know if anyone has found ANY work around that I might be able to use. My friend was saying he thought there might be an os that would allow me to keep the screen on without the backlight going to save battery..
This really seems like an easy problem to solve, but I'm no expert.
Comment #103
Posted on Mar 23, 2013 by Helpful OxHi, as all of you, I have the same issue, but what I noticed is that when you press the home button and then you re-open the aplication but not from the aplication icon, you have to open it from the menu of the last aplications which were used recently, so when you open it like this, the cache previously stored in the memory when you launched the app for the first time will update the application next time you re-open it (from the last time it was used up to the current time). This is what Android does in every aplication. So it is not a solution but it works more less.
What my app does, is to track via GPS and then launch and email in order to report the position. It does it every hour, the problem here is that some times it does and some times it misess some reports because of the issues in background.
- GPS_EMAIL_A.jpg 231.01KB
Comment #104
Posted on Mar 24, 2013 by Helpful MonkeyFirst-time AI user, my use-case is pretty simple I think, my app is just a looping timer that plays a sound when it reaches zero, then restarts for a predefined number of cycles... It gets killed when the screen turns off :( would be great if it could persist until it finishes, at which point it doesn't matter if it gets killed. /dom
Comment #105
Posted on Mar 25, 2013 by Swift PandaTrying to create an alarm, facing the same problem as many, as the alarm does not run if the app is closed, only if it's running in the background which is not efficient. We need a solution for this problem as soon as possible please!
Comment #106
Posted on Mar 25, 2013 by Swift PandaDear lordwire1@gmail.com I was wondering what was the to do argument you used at the left bottom of the editor as it is not clear, please state the name of the procedure you used (the clock related blocks).. thank you!
Comment #107
Posted on Mar 25, 2013 by Quick RabbitHi all,
as mentioned in previous replies, the only solution to this problem is to create your own component that contains the background service that you need. This will not be implemented in the main repository anytime soon (nor in the near future).
Feel free to contact the Open Source group for support on how to work with the App Inventor sources : http://appinventor.mit.edu/appinventor-sources/
Comment #108
Posted on Jul 23, 2013 by Massive HippoI am new to app inventor started to use in June 2013. reading this thread, various situations in developing various kind of apps its needed to run it in background process ( specially in locating by GPS) one of this kind of need is faced by me too to develop certain slimier kind of application.
i would like to know; if the team from MIT or the other enthusiastic people working on this project to develop more and more functionality to app inventor have already given some provision for the issue.? what is the latest news of the same issue? is it been resolved ? please some one let me know, i am badly need that component ( procedure) to run my application in background. Thanks in advance.
ketan raval / date - 23/07/2013 / India.
Comment #109
Posted on Jul 29, 2013 by Massive Hippono reply from any one ...
Comment #110
Posted on Jul 30, 2013 by Quick RabbitPlease refer to comment #107 for a reply. Thanks.
Comment #111
Posted on Aug 5, 2013 by Happy Giraffei hope that
Comment #112
Posted on Aug 11, 2013 by Massive RhinoGreat news concerning "How to refrain your device from sleeping"!
We now have a direct solution with App Inventor only. Thank you Omar for finding it out.
This is how it works: Include a videoplayer component width x height = 1x1, the videoplayer component must be visible on the screen. Upload a small dummy video. Start the video. In the video completed event start it again (or under some condition desired). By playing the video the application is running without sleep. It fades out the screen, then black, but the application still is running.
I updated my countdown example here http://puravidaapps.com/countdown.php, which uses this new solution.
Thank you again Omar! Taifun
Comment #113
Posted on Oct 5, 2013 by Quick MonkeyI Need this feature as well :)
Comment #114
Posted on Oct 28, 2013 by Massive Birddefinitely, these features must be added as it sometimes mandatory in some developed applications
Comment #115
Posted on Jan 10, 2014 by Swift DogIf the "Change Location" under the Location Sensor could also be triggered while the application is in the background (like the texting receive text does) that would be useful. I also am interested in doing current gps location and signal events based on proximity apps - like #5 at the top. Thank you.
Comment #116
Posted on Feb 21, 2014 by Massive HippoActually to ignore this issue is really a bad solution to helping people, this is a real world and people really do use this application to make apps so they dont have to learn a whole new language ie java, cordova doesn't work this doesn't work. so now i just wasted two weeks of my time just to find out i have to learn java instead of doing things a way i wished i could have done them.
Comment #117
Posted on Feb 26, 2014 by Happy CatMany apps use this feature but still nothing
Comment #118
Posted on Mar 4, 2014 by Happy WombatComment deleted
Comment #119
Posted on Mar 7, 2014 by Grumpy WombatStill waiting for this great feature!!
Comment #120
Posted on Mar 14, 2014 by Grumpy CamelThe solution to this issue will be a great plus to appinventor developers
Comment #121
Posted on Mar 24, 2014 by Swift BearI need this also
Comment #122
Posted on Mar 27, 2014 by Massive PandaAwesome capability. I've been working out details of an app that 'listens' for voice commands. If it could wake up on command that would really open some doors for very different types of apps now that VR is getting acceptably useful.
Along the same lines would be a way to essentially disable the devices sleep timer completely. ie. I want to have an app wait for an input (tap, shake, sprite swipe, etc) but do NOT want to have to force the user to wake up the device and possibly restart the app first. It needs to be there waiting, at least optionally, for the tap.
Comment #123
Posted on Mar 28, 2014 by Swift Pandai need this also
Comment #124
Posted on Apr 9, 2014 by Happy Birdneed an app that even when in the background can process an SMS from the local ambulance service and then process the message.
Comment #125
Posted on Apr 15, 2014 by Happy BirdAgreed that this is something that needs to be addressed. I have spent 3 weeks to familiarise myself with AI & to build my prototype, to find that I now have to desperately find a new solution with the school project deadline tightening in on me T^T I just need the app to sit & continue pinging my GPS data to Fusion Tables... any suggestions...?
Comment #126
Posted on Apr 17, 2014 by Grumpy HippoI need this service too. I'm shure that all AI users would benefit to a function that could wake up an app if something happens. App inventor is fantastic, but the use of the apps created here is limited to the presens of the user. I can see the issue of annoying apps popping up with the background service available, but the user is king. No problem to remove it. If the AI should be a tool to use, get going! Great work anyway!!
Comment #127
Posted on May 8, 2014 by Massive LionI want this feature very badly also. Currently using Tasker to work it around
Comment #128
Posted on May 19, 2014 by Grumpy Monkey4 years since this forum started and nothing...
Comment #129
Posted on Jun 15, 2014 by Helpful KangarooHi all, I'm also new to AI and have picked it up in about a week due to the great user interface, but...Unfortunately, without this being fixed, it's a car without wheels. Very sad
Comment #130
Posted on Jun 18, 2014 by Helpful CatI like "it's a car without wheels". I am also new to ai and i like the concept and i will continue. But there are basic missings like thé use of Android without user standing up before smartphone or bluetooth autoconnexion. I don't understand why these elementary points are note seen with app inventor. We hope.....Yes you can.....
Comment #131
Posted on Jun 28, 2014 by Massive Wombat2010 - 2015. Te same problem. :(
Comment #132
Posted on Jul 3, 2014 by Happy WombatUnbelievable still no solution. Pending since Oct 2010. I think it is critical for lot of interesting applications.
Comment #133
Posted on Jul 23, 2014 by Quick HippoHi guys. Is it possible to use SL4A Scripting calls by an ActivityStarter: https://code.google.com/p/android-scripting/wiki/AppInventor as a substitute for a Service to make alarm clock app or receive sms messages or check a TinyWebDB for changes? I don't know anything about SL4A Scripting and i don't wanna waste my time if this doesn't work.
Comment #134
Posted on Jul 31, 2014 by Grumpy OxIndeed! After 4 years it should be time that this option is ready.
Comment #135
Posted on Aug 27, 2014 by Quick CatI've spent the week or so poking around trying to figure out a solution for this. Finally found it! I tried using the ActivityStarter with Tasker, but AI wouldn't broadcast unless it was in the foreground. But it will save a file. I just had Tasker monitor for that file to be modified, set a Flash task, and boom! Now I have Arduino with a Bluetooth module interacting with Tasker.
Comment #136
Posted on Nov 18, 2014 by Helpful WombatPut the awe back into awesome that MIT App Inventor will be.
Comment #137
Posted on Nov 19, 2014 by Swift LionPlease add background / service running !!!
Comment #138
Posted on Nov 21, 2014 by Massive RhinoYou guys at MIT or Google are pathetic... My project timer works fine until my phone goes to sleep....Great work.. :(
Comment #139
Posted on Dec 1, 2014 by Quick Camelat least give us any walkarround... let us access to the manifest of our apk's
Comment #140
Posted on Dec 2, 2014 by Grumpy CatSame assessment on my own little project as of 1 December 2014: my timer works fine until my phone goes to sleep :(
Comment #141
Posted on Dec 14, 2014 by Swift GiraffeYeah! Background service is a must! Wanted to use this tool but it won't fit any of my projects....
Comment #142
Posted on Jan 13, 2015 by Happy Elephantneeded so much!
Comment #143
Posted on Jan 13, 2015 by Happy CamelPlease please Help us guys we need this...
Comment #144
Posted on Jan 21, 2015 by Grumpy RhinoPlease allow apps to run as a background service. Thanks! :)
Comment #145
Posted on Jan 22, 2015 by Massive DogStill Waiting.
Comment #146
Posted on Jan 25, 2015 by Helpful RabbitPlease allow apps to run as a background service otherwise ai2 is a useless tool.
Comment #147
Posted on Jan 25, 2015 by Massive OxI made an application for Arduino. The program reads the data via bluetooth and sends data on the Internet. When bluetooth connections of meaning it even works in the background. When concatenate no it does not work in the background. Used two first timer to concatenate the second bluetooth for internet concatenate
Comment #148
Posted on Feb 3, 2015 by Quick Wombatwe really need it ...
Comment #149
Posted on Feb 9, 2015 by Swift Kangaroostill waiting...
Comment #150
Posted on Feb 17, 2015 by Massive HippoComment deleted
Comment #151
Posted on Feb 17, 2015 by Massive HippoI'll add my voice to the chorus. This would be a wonderful feature.
Comment #152
Posted on Feb 18, 2015 by Helpful Wombatthis is the number 1 thing I need right now!
Comment #153
Posted on Feb 21, 2015 by Swift CatI am very new to app development (not programming) so please forgive me in advance. I have developed an app which processes SMS messages. It works fine as long as the app screen (there is only one) "has focus". As soon as another app screen shows then my app stops working. Is this the same issue as the other items in this thread?
Comment #154
Posted on Feb 26, 2015 by Swift Monkeymany of waiters , jus like me hahahaha
Comment #155
Posted on Feb 27, 2015 by Happy Wombatwaiting...
Comment #156
Posted on Mar 3, 2015 by Happy CamelI found this trick https://groups.google.com/forum/#!msg/mitappinventortest/E-4qtjVUnRc/p35QTfquZqYJ
in my spanish tutorial about App inventor 2, I use this trick
http://iesromerovargas.es/android/inicio35.htm
Mi tutorial español sobre AI2
http://iesromerovargas.es/android
Saludos.
Comment #157
Posted on Mar 6, 2015 by Massive Camelthis would definately be a great feature
Comment #158
Posted on Mar 12, 2015 by Grumpy CamelCan we get an approximate date?
Comment #159
Posted on Mar 15, 2015 by Happy BirdHello, everyone. I may bring good news to you all.
I have found/determined a way that the app can be run in the background. My app is a GPS tracker that uses a host device and a client device, it gets and stores values to my app engine server.
I have blocked the back button from working in the app by creating a variable called "nothing" and when the back button is pressed, it sets that value to "1". That stops the app killing itself.
I would suggest if you have any task killing apps, disable any auto kill features.
With the webdb's I have found that they can "getvalues" in the background even with the screen off. (This requires the back button blocking trick).
For the "storevalue" commands, it is a little more complicated. If your app has a refresh system, then you probably have a clock/timer in your app. The one and only component in ai that fully runs in the background is the player.
So, the solution is to make a muted audio track with the time length of your refresh clock/timer. Then move all the items within "Clock1 .Timer" to "Player1 .Completed".
This kind of works, but it would be good to see if it works for others.
Regards Jonathan
Comment #160
Posted on Mar 17, 2015 by Grumpy BirdWant this Update!!
Comment #161
Posted on Apr 14, 2015 by Happy Wombat@Jonathan: Thanks a lot. The muted audio trick works perfectly fine.
Comment #162
Posted on Apr 20, 2015 by Swift HorseMe need too please.
Comment #163
Posted on May 6, 2015 by Massive WombatI'm no expert app inventor, but I created this little procedure that allows the app when you reopen it to calculate the time difference to what has been closed. Do not send notifications when the timer ends. but that's something.
- 1.png 78.51KB
- 2.png 46.47KB
Comment #164
Posted on Jun 13, 2015 by Massive HippoPlease Please Please add background service running
Comment #165
Posted on Jun 19, 2015 by Grumpy HippoSame here, please add the background service running. Thanks!
Comment #166
Posted on Jun 19, 2015 by Quick BirdPlease Please add Background service running !!!
Comment #167
Posted on Jun 23, 2015 by Happy KangarooCan someone explain me why isn't possible extend this feature on open source ai2?
Comment #168
Posted on Jun 24, 2015 by Swift MonkeyPlease add background service running!!!!
Comment #169
Posted on Jun 24, 2015 by Happy KangarooHello everyone, like all I'm looking for a solution to develop application with ai2 that works in background too. To me is not clear why ai2 doesn't create a service app. is there someone that can explain me why?
thanks
Comment #170
Posted on Jul 8, 2015 by Swift MonkeySeems counter-productive to give us a tutorial on an app (No Texting While Driving) that really is useless because it stops when the screen locks automatically. Running with other Apps to keep screen awake when app is running is limiting and battery draining. Really was discouraging to learn of this non-functionality of App Inventor 2.
Comment #171
Posted on Jul 9, 2015 by Happy DogPlease include it.
I need to make a clock app that needs to run in the background and starting a service is what should keep it running in the background.
Comment #172
Posted on Jul 28, 2015 by Swift CamelPlease include run as service feature: very useful for example for make apps to store to do lists that sound an alarm at certain time or show a message with the thing to do
Comment #173
Posted on Aug 11, 2015 by Happy WombatComment deleted
Comment #174
Posted on Aug 13, 2015 by Happy Wombatany one will answer at least when this feature will be available ?????!!!!! really need things like timer to be working in the back ground or when screen is locked and take actions
Status: Noted
Labels:
Feature