Android Question About FTP service

kuosda

Active Member
Licensed User
Longtime User
I have a service request for uploading files to FTP without using notifications (background processing), what should I do?
 

DonManfred

Expert
Licensed User
Longtime User
You are not supposed to do long background tasks without having a foregroundservice (including the notification).
For short files you can use the starter service. But if it takes some time you need a foreground service.
 
Upvote 0

kuosda

Active Member
Licensed User
Longtime User
Hello DonManfred
The supervisor gave me a task to upload and use the APP information on a regular basis and it could not be found by users, so this is a long-term background service.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
So I need to have a foregroundservice to run it for a long time, right?
You are not supposed to do long background tasks without having a foregroundservice (including the notification).
You are not able to do such task without a foregroundservice. At least not on higher targetsdk´s.

Relevant Tutorial.

Edit to add: If you app is not on Playstore you can try to use a lower targetsdk but i can´t provide an example.
Still not answered?
 
Upvote 0
Top