Rotate App in background with phonegap

1

I'm a PHP programmer and I'm venturing into the mobile world.

I need to create a simple app, it will just play a specific radio, the problem is: How to run the app in backgroud? When the app is minimized the radio needs to continue playing.

I do not need ready code, the stone path is good.

    
asked by anonymous 09.05.2014 / 15:15

1 answer

1

Developing for Android and using native code would suggest the use of IntentService on Android ( Service and create-service ).

Searching for the use of Services in Phonegap, I do not know if it is possible to have a Service with native Android code and to execute your JavaScript code to play the radio.

An alternative is to look for a PhoneGap plugin (I've never used it so I can not indicate any). But by researching these plugins there are: BackgroundService and Phonegap Android Background Service Plugin - Explained . If someone who has had experience can give more details would be perfect.

I hope I have helped.

    
09.05.2014 / 16:31