Fix Required: App Stops Printing After Screen-Off (Android 10+)

Job ID: 39583396

Budget: €30 – €250 EUR

Core Idea

A custom Android application for restaurants/stores that:

Connects to a Laravel backend to receive real-time orders.

Automatically prints orders to thermal printers (via Bluetooth, USB, or TCP).

Built with Angular, Capacitor, and a custom Cordova plugin for printing.

Designed to run continuously, even when minimized or the screen is off.



---

Problem Statement (Critical)

On Android 10 and above, the app stops printing after 5–6 minutes of the screen being off.

This is due to OS background restrictions (Doze Mode, App Standby, etc.) which terminate the background tasks.

The current background solution (cordova-plugin-background-mode) is not sufficient for Android 10+.



---

Need

A robust, Android 10+ compliant solution that keeps the app:

Running and polling for new orders,

Printing without interruption,

Regardless of screen state or idle time.




---

App Code / Architecture

Frontend: Angular

Mobile Platform Bridge: Capacitor & Cordova

Background Execution: cordova-plugin-background-mode (currently insufficient)

Custom Plugin: Handles printing to thermal printers via Bluetooth/USB/TCP

Build System: Gradle

Native Code: Android SDK (Java)

Target Devices: Android 6.0 (SDK 23) to Android 13+ (SDK 33)



---

Required Developer Tasks

1. Implement or replace the background execution strategy to comply with Android 10+ limits.


2. Preserve all existing functionality (order handling and printing).


3. Work remotely in a VM without emulator access or local code download.


4. Test fixes via physical device with APK builds provided to the requester.

NOTE: Please know that this is a personal project not a company and not started yet, so the budget is very limited.