android:launchMode="standard" or something else? ...
# compose-android
c
android:launchMode="standard" or something else? Just barely compose-android related, but I'll ask anyway. Most apps I build at this point are fully compose with a single activity and configChanges in manifest are all disabled (still as per the guidance from @Adam Powell wayyyyy back when). I'm also using navigation-3 (if its relevant to the convo) but what does everyone do for launchMode. Big argument discussion within our team that i'd like some guidance
m
I'm not really sure how Compose changes anything here. For what it's worth, I use
singleTask
with a single Activity, so all intents are routed through it and there is a single root in case the app navigates outside to a browser, payments, maps, etc.
e
I'm pretty sure I've been using single instance for years. Sameish setup
c
i think @Ian Lake a while back pretty much said dont use anything except for the default launch mode in some thread a while back but i cant find it. i think he mentioned the single* have a bunch of papercuts and really only make sense for browsers or somthing.
j
Also remember some conversations and videos where default was recommmended.
☝️ 1
d
Unless things have changed recently you should not be using singleTask because of the task hijacking vulnerability.