Can an Ionic application run in the background as a service?

I’m not sure if this is possible using Ionic (Perhaps I’ll have to create my own plugin for it?) but I want to create the interface for my new application with Ionic, but I also want to have a service (Android) that runs in the background listening for network requests and responding to them.

yes, there is a plugin for that.

There is a plugin to make your application continue running in the background, but this probably isn’t what you want by the sounds of it (you’re trying to listen for stuff that’s happening outside of your application, not just continuing to run the Javascript inside of your application). There’s also a plugin for communicating with an Android background service, but the background service itself still needs to be written in Java.

Edit: This is the plugin for communicating with an Android background service:

1 Like

is this plugin works with ionic