Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 94

Temoshi
Aspiring developer
Profile
Posts: 2
Reg: Apr 11, 2014
Gatineau
20
04/11/14 10:56 AM (10 years ago)

Running App in the Background

Is there a way to allow a process to run in the background when a phone is running or has started? This is without it being left open in the window list. Any way to do this with options? I'm just starting, so I'm curious if this is an option. - Temoshi
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/11/14 02:52 PM (10 years ago)
Welcome to Buzztouch! A few plugins, such as PSM Danny's Audio stream plugin, allow music to play even though the app is no longer 'in front'. So I suppose the answer is yes. But I've not done that kind of programming, so I'm not sure how. Cheers! -- Smug
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
04/11/14 03:28 PM (10 years ago)
I am trying to figure this out too. I have a plugin that uses geoFencing. If the plugin is the "Home Screen" it will receive local notifications even when the app is closed. But, if a menu screen is the "Home Screen" then the app needs to be running for the plugin to receive the local notifications. There must be a way.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/11/14 03:30 PM (10 years ago)
http://www.raywenderlich.com/29948/backgrounding-for-ios Not sure about Android (yet) Cheers! -- Smug
 
Temoshi
Aspiring developer
Profile
Posts: 2
Reg: Apr 11, 2014
Gatineau
20
like
04/11/14 03:34 PM (10 years ago)
Audio stream? I wasn't thinking music, but more along the lines of a scheduled event. I tried an alarm app that you had to have the icon in the menu panels to work, but it would work from that. Perhaps that is what I need to do, is make it work when it's in one of the panels. I'm guessing that acts like a process (on Android), not sure about iPhone though.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
04/12/14 10:52 AM (10 years ago)
This is not exactly what you had asked, yet take a quick look at these two articles from AppCoda: Working With Background Fetch in iOS 7 http://www.appcoda.com/ios7-background-fetch-programming/ Background Transfer Service in iOS 7 SDK: How To Download File in Background http://www.appcoda.com/background-transfer-service-ios7/ The Ray Wenderlich tutorials are also awesome! (See Smug's suggestion above) -- Niraj
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.