Tlaster / PreCompose

Compose Multiplatform Navigation && State Management
https://tlaster.github.io/PreCompose/
MIT License
839 stars 49 forks source link

Android navigation doesn't survive process death #265

Open FunkyMuse opened 7 months ago

FunkyMuse commented 7 months ago

create starting scene A, open scene B from A

minimize the app, then open device explorer > processes > kill process > try to maximize the app, the current scene should be B and when you go back it should open A, instead it's only A

Tlaster commented 7 months ago

PreCompose is not using SavedStateHandle now, so this is the current behavior, I'll try to add support to this but will be an Android only behavior.

FunkyMuse commented 7 months ago

PreCompose is not using SavedStateHandle now, so this is the current behavior, I'll try to add support to this but will be an Androud only behavior.

Yes that's totally understandable, only Android needs this AFAIK

FunkyMuse commented 7 months ago

@Tlaster is this in progress by you or? It's kinda crucial for the UX when releasing to the Play Store as many devices kill the apps unexpectedly and the backstack is lost when using PreCompose

Tlaster commented 7 months ago

@Tlaster is this in progress by you or? It's kinda crucial for the UX when releasing to the Play Store as many devices kill the apps unexpectedly and the backstack is lost when using PreCompose

Sorry, but I am currently ill and may not have time to do this quickly.

FunkyMuse commented 7 months ago

@Tlaster is this in progress by you or? It's kinda crucial for the UX when releasing to the Play Store as many devices kill the apps unexpectedly and the backstack is lost when using PreCompose

Sorry, but I am currently ill and may not have time to do this quickly.

I hope you recover quickly, take care!

If you can point me into the way you want this done, I can create a PR.

Tlaster commented 7 months ago

@Tlaster is this in progress by you or? It's kinda crucial for the UX when releasing to the Play Store as many devices kill the apps unexpectedly and the backstack is lost when using PreCompose

Sorry, but I am currently ill and may not have time to do this quickly.

I hope you recover quickly, take care!

If you can point me into the way you want this done, I can create a PR.

Thanks, I don't have a clue right now. If you want to contribute, feel free to do so.

inveders commented 2 weeks ago

Hello @Tlaster and @FunkyMuse what about this ? @FunkyMuse have you finally contributed ? @Tlaster do you plan do do this?

FunkyMuse commented 2 weeks ago

Hello @Tlaster and @FunkyMuse what about this ? @FunkyMuse have you finally contributed ? @Tlaster do you plan do do this?

Hi, I moved away from using this library, I'm using the official navigation library from Google by jetbrains on KMP.

inveders commented 2 weeks ago

Ok thanks you @FunkyMuse so with the official navigation library this case work I guess?

FunkyMuse commented 2 weeks ago

Ok thanks you @FunkyMuse so with the official navigation library this case work I guess?

Yes it does