How to make a hybrid application for Android run in the background?

0

I wonder if it is possible to make a hybrid application for Android having a service running in the background where even with the application closed I can receive information from a server and notify the user. This application is developed in JavaScript using the IONIC framework.

    
asked by anonymous 08.05.2015 / 02:47

1 answer

1

So, I imagine you are using phonegap / cord, to create the app you will need to make your app run in the background and use Push Notifications, which is configured in the application and google dashboard.

Push Notifications

google dashboard

And to keep your app in the background, put it in the config.xml file

<preference name="exit-on-suspend" value="false" /> 
    
08.05.2015 / 04:43