getx icon indicating copy to clipboard operation
getx copied to clipboard

on backbutton press always close the app - not beta

Open selvam920 opened this issue 1 year ago • 15 comments

get 4.6.5 - after updating flutter 3.13 in android when back button pressed the app close instead of going to back previous page

selvam920 avatar Aug 19 '23 13:08 selvam920

cy ,,,same confusion ,

do-one-thing-to-well avatar Aug 20 '23 08:08 do-one-thing-to-well

Did anyone find this fix?

Sumit258000 avatar Aug 29 '23 17:08 Sumit258000

same issues, please fix. thank

minhx3 avatar Sep 06 '23 08:09 minhx3

when i downgrade to 3.10.1 it work

minhx3 avatar Sep 06 '23 08:09 minhx3

Even 3.10.6 will also work. Problem starts from 3.13.0 +

Sumit258000 avatar Sep 06 '23 08:09 Sumit258000

Check whether android:enableOnBackInvokedCallback="true" is added to the AndroidManifest.xml and delete it.

lidary-byte avatar Sep 06 '23 23:09 lidary-byte

Even 3.10.6 will also work. Problem starts from 3.13.0 +

https://github.com/jonataslaw/getx/pull/2882#issuecomment-1691532942

minhx3 avatar Sep 07 '23 02:09 minhx3

Check whether android:enableOnBackInvokedCallback="true" is added to the AndroidManifest.xml

thank for support, you save me 02 days

minhx3 avatar Sep 07 '23 02:09 minhx3

Check whether android:enableOnBackInvokedCallback="true" is added to the AndroidManifest.xml

Yes its already added still app closes on back press in flutter 3.13.0 +

Sumit258000 avatar Sep 07 '23 04:09 Sumit258000

With get: ^4.6.6 and flutter:3.13.1 still problem persist.

Sumit258000 avatar Sep 11 '23 05:09 Sumit258000

Check whether is added to the AndroidManifest.xmlandroid:enableOnBackInvokedCallback="true"

Yes its already added still app closes on back press in flutter 3.13.0 +

delete it

lidary-byte avatar Sep 12 '23 06:09 lidary-byte

Thanks man for your answer. I was struggling for this from last 2 weeks. Thanks a ton!!

Sumit258000 avatar Sep 12 '23 06:09 Sumit258000

Check whether android:enableOnBackInvokedCallback="true" is added to the AndroidManifest.xml and delete it.

This is indeed the solution. Issue should be closed

Duncan-Waweru avatar Feb 13 '24 11:02 Duncan-Waweru

I am facing the same issue but my application still loosing state and application is still closing

Isaacodes-dev avatar May 02 '24 13:05 Isaacodes-dev

I am facing the same issue but my application still loosing state and application is still closing

After delete this line(android:enableOnBackInvokedCallback="true") , , flutter clean and flutter pub get helped me

islom9797 avatar Jul 25 '24 12:07 islom9797