Hupl icon indicating copy to clipboard operation
Hupl copied to clipboard

stayin' alive

Open Rouji opened this issue 7 years ago • 2 comments

Uploads/notifications sometimes get killed by a hupl activity being closed (swiping it from the recent apps screen).

The obvious answer would be a service doing all the uploading and notifying, but it turns out those get killed just as easily. The only exception being a service using startForeground(), but that necessarily binds the service to a notification, that must stay visible and can't be cancelled until the entire service can be stopped. And that's of course a massive pain in the arse, if you want multiple notifications at once, that are all dismissible at any time.

Rouji avatar Mar 08 '17 01:03 Rouji

Interestingly enough, the uploader selection disappearing by calling finish() on itself, after you've started an upload, doesn't kill the process, even though the activity's gone. ┐(´д`)┌

Rouji avatar Mar 08 '17 01:03 Rouji

Update: v2 does use a service with startForeground(), which keeps it from being killed by the user closing an activity. But only while something's uploading; after all uploads are finished, closing an activity can still clear the notifications. (Good job there's now a history, innit?)

Rouji avatar Mar 26 '17 23:03 Rouji

literally nothing you can do about things like that

Rouji avatar Jun 08 '24 15:06 Rouji