Opened 2 years ago

Last modified 2 years ago

#1904 accepted defect

Android 0.9.27 service killed on app swipe

Reported by: Licaon_Kter Owned by: str4d
Priority: major Milestone: 0.9.29
Component: apps/android Version: 0.9.27
Keywords: Android, service, swipe, background Cc: str4d
Parent Tickets:

Description

In 0.9.26 one could just swipe the app away in the task manager, since it uses a (notification the) service (it) will be kept in memory in background running just fine.

Now in 0.9.27 swiping the app away will kill the service too, so one needs to keep the app opened all the time.

Testing the official build ( Outside I2P (0.9.27) here https://geti2p.net/en/download#android ) it did not have this problem at the first try, but it did several hours later in another test.

App is excepted in Doze/battery app, happens in Android 5.1.1 and Nougat Preview 4, notification even stays on after the service is killed (!!!) and you can't dismiss it (yes, you can hide it).

Rebooting the device will have the app running in background at start just fine, until you open it, swiping away will kill it then.

Subtickets (add)

Change History (1)

comment:1 Changed 2 years ago by str4d

  • Status changed from new to accepted

The likely cause of the problem is that in 0.9.27 I updated the build SDK version to 25, in order to update to the latest version of the support libraries. However, I don't know why it could have caused a behavioural change like this, because I explicitly kept the target SDK at 22 (so it should still be operating in compatibility mode for later SDKs).

Note: See TracTickets for help on using tickets.