Constantly Running Android Background Service App Development

Job ID: 36282748

Budget: $10 – $30 USD

I want to create a constantly running Android background service.
The service will scans for Wifi in the background and sends the results to the cloud API.
When I terminate the application in Recent Apps, the service continues to run.
But the service stops when RAM is cleaned using Cleaning applications. This can be seen in the video link(https://disk.yandex.com.tr/i/lZ27oaHJoSHd_Q).
The service should not stop when the RAM is cleared, or it should start automatically after it stops.
I am using Android Studio(Java) project. I want you to share source code that will solve my problem.
I am using Redmi Note 8 Pro(Android 11) for test for App. Source code should be supported Android 13