corona


how to keep music running when app is brought to front after being minimized?


I am using media.playSound method. the music is working fine but when I minimize the app to lets say open something else, the music stops when I reopen the app. I tried the same thing on android, it's all right there. The music pauses when the app is minimized and then it is resumed when the app is brought to front.
Is there something that needs to be done for it to work on ios devices ??
This post is from 25 June 2013 from a SDK staff member in response to a similar question.
Apple supports a limited number of background modes including playing background music, some GPS features, Newsstand downloads, etc. Some people have gotten this to work. But the official answer from the Engineers is "This is unsupported in Corona SDK. It may not work in future releases. And it doesn't work on Android with Corona SDK at all". That said, you can take your chances, but no complaining when you update to a later release and your app breaks.
This is unsupported.
The topic takes a turn to talk about the zero support in Andriod so it's safe to say it's unsupported for ios. It's been over a year so I'd suggest finding the page on their site where they talk about added features or ask this question there to find your answer.

Related Links

corona storyboard dispatch event error
Web view Background trasparency
Changing display Image when interacting to other display
Tap on display objects in Corona SDK
Tableviews “slide down” when tapped in Widget 2.0
Display long text in fixed frame in Corona
Sound delay on emulator in corona sdk
Corona Sdk frame number per second
What is the difference adding view directly without following code
Corona SDK Touch Phases - Touch and Hold
corona sdk - scene keep old items
adding objects to screen in corona sdk without defining x y coordinates? corona sdk
Where is the log printed when I use print(“”) in Corona Engine?
corona sdk storyboard using press button to move next
Accessing device contact list using Corona Sdk?
How to get status bar height in corona sdk?

Categories

HOME
amazon-web-services
mc
mpdf
seedstack
redmine
operating-system
compilation
slider
consul
openflow
material-components
ontology
azure-mobile-services
clone
save
kurento
elastic-load-balancer
locationmanager
buffer
responsivevoice
xbox360
orange-api
parceler
akka-persistence
intel
candlestick-chart
exchange-server-2010
cell
software-packaging
raima
python-appium
points
history.js
adapter
bitbake
ibm-connections
javax.persistence
splunk-query
guice
tilemill
location-services
mapnik
xcrun
caesar-cipher
spring-rabbitmq
iscroll
rdp
plane
icepdf
raytracing
nomad
daz3d
realstudio
rightnow-crm
glimpse
email-forwarding
swiperefreshlayout
emf-compare
rustdoc
tablespace
jsonix
maven-release-plugin
eclemma
right-to-left
textblock
i2b2
psd
deeplink
sequence-sql
darwin
fuseesb
gflags
innerhtml
fat32
cakephp-2.2
window-resize
siena
redpitaya
reference-counting
rails-api
preorder
illuminate-container
infinite
xsd2code
non-ascii-characters
ax
axacropdf
delphi-xe4
mongo-jackson-mapper
popup-blocker
getopt-long
nsfont
type-safety
servercontrol
server-variables
getopts
startupscript
tablet-pc
upshot
rendering-engine

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App