Keep app running when memory is cleared (Android)


#1

Hello everyone,

I’m creating an stopwatch like application that’s needs to keep running on the background -> solved with ionic native background.
However, when the android memory is cleared, the application still shuts down (Completely logical) but I need a way to keep the timer running. It doesn’t mind If i need to create an service in Android/Java to archieve that but then I would like some guidance on how to package it as a single app with Ionic. (Because I read about creating an native service for it)
Using push to wake the device when count down is ended isn’t an option because the counter counts up an is stopped by user.

Any tips, advise, guidance or something?

Thanks in advance!

Nathan