K kuosda Active Member Licensed User Longtime User Dec 9, 2019 #1 I have a service request for uploading files to FTP without using notifications (background processing), what should I do?
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 Dec 9, 2019 #2 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
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.
K kuosda Active Member Licensed User Longtime User Dec 9, 2019 #3 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
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.
DonManfred Expert Licensed User Longtime User Dec 9, 2019 #4 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. Last edited: Dec 9, 2019 Upvote 0
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.
K kuosda Active Member Licensed User Longtime User Dec 9, 2019 #5 So I need to have a foregroundservice to run it for a long time, right? Upvote 0
DonManfred Expert Licensed User Longtime User Dec 9, 2019 #6 kuosda said: So I need to have a foregroundservice to run it for a long time, right? Click to expand... DonManfred said: You are not supposed to do long background tasks without having a foregroundservice (including the notification). Click to expand... DonManfred said: 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. Click to expand... Still not answered? Upvote 0
kuosda said: So I need to have a foregroundservice to run it for a long time, right? Click to expand... DonManfred said: You are not supposed to do long background tasks without having a foregroundservice (including the notification). Click to expand... DonManfred said: 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. Click to expand... Still not answered?