Background audio and earphones button listener (android)
Mar 01 2019 10:07 PM
Thank you Rob for the reply.
Sorry for restoring this. Normally we don't delete threads even when they are complete so others can learn from the answers.
Corona Native is taking an app that is Lua based and adding some native features to it, or using Xcode to do off-line builds.
CoronaCards assumes you have an existing native app and you want to add a Corona view to your existing app.
So you are correct about that, but if you have an existing native app, it likely has an existing native UI and you can background that, play your music and go on as long as your Corona View isn't showing. At that point, you're just a native app.
But it sounds like you want to use Corona to build the UI to play your music, so if a song changes while the app is backgrounded, it might try to download some cover art, update the title, artist and duration inside the Corona View and that's just not something we've tested or guarantee to work. It's possible you could get it working today and we make an update to how the UI works and break your app in the future.
Thank you for the detailed explanation, I have a more clear picture now of how things work. I needed this for one of my side projects, guess I need a different toolset.
All the best