oxen-io / session-android

A private messenger for Android.
https://getsession.org
GNU General Public License v3.0
1.82k stars 170 forks source link

Making Session Invisible in the Recent Apps #1556

Open session11 opened 1 month ago

session11 commented 1 month ago

Is there an existing request for feature?

What feature would you like?

I think, it would be nice if Session would remain invisible in the Recent Apps, or disappear as soon as the app is in background.

Anything else?

No response

ThomasSession commented 1 month ago

Hi there. By 'recent apps', do you mean the row of app icons at the top of the app list? Or do you mean hiding the content of the app in the fullscreen list of opened apps, the same way some banking apps do?

bemusementpark commented 1 month ago

I think they mean the app icon from the "recent app icons" list. Or do you actually mean the Recents Screen? also called the Overview screen, recent task list, or recent apps screen which I don't think we would want to modify

It could be an option in settings, but I don't imagine we would want to default to hiding and reduce the stickiness/rediscoverability of the app generally.

session11 commented 1 month ago

I meant the "Recent Screen" or "Recent Task List". What I meant is that once Session is in the background (pressing home or back button), it simply becomes invisible in Recent Task List. Thank you so much for your replies. Its not that important as I could still swipe out the app from Recent Task List, however it would be nice if such a feature is implemented.

bemusementpark commented 1 month ago

It's interesting.

There's activity tag android:excludeFromRecents="true" to set it statically, and perhaps some runtime code

        activityManager = getSystemService(ACTIVITY_SERVICE) as ActivityManager
        activityManager.moveTaskToFront(taskId, ActivityManager.MOVE_TASK_NO_USER_ACTION)

that perhaps you could apply from some preferences, but it'd probably make sense to address this later if at all, as I'm assuming most users can just force quit, on a pixel, you just swipe up twice.

And besides there may be side-effects that the open Activitys may be destroyed.

session11 commented 1 month ago

@bemusementpark, its good to know that the feature I requested, has the possibility to be implemented as User Preference. I agree, that its not at all a priority thing. Thanks again for your very generous reply.

pottsandpans commented 1 month ago

Tracking this internally via Jira SES-2491