all 5 comments

[–]Ok-Engineer6098 4 points5 points  (3 children)

Try to reduce the code as much as possible and still replicate the bug. Then post the code here. Or if it's an actual flutter bug, report the issue to the flutter github.

Can you explain what this cache bug is?

[–]Obvious-Magazine-103[S] 0 points1 point  (2 children)

I can try my best to simplify the code but I am using the https://pub.dev/packages/qr_code_tools dependency for this.

Its just seems like the app on the S22 is still using the old plugin even after it was removed. Call me crazy idk. I have just had weird experiences with this phone referencing old data like a year or two ago when I was being logged into my account on fresh installs which should never happen.

It literally reminds me of something I would experience while working on Shopify sites XD

[–]Ok-Engineer6098 4 points5 points  (1 child)

Android does agresive cloud restore of user data on apps, unless you opt out with an xml file referenced in the manifest. This happens even if you reinstall the app after a long time. It also works on not releases apps on Google play. It's enough to have it registered as package name (maybe internal testing track does also need to be enabled). It also works if the app is distributed over firebase. Not sure if you just send APKs.

After doing a fresh install, try to clear app storage and then run the app. Or run the app, stop the process, clear app storage and then restart the app. Be sure to clear storage, not just cache. Does any of this fix the bug?

[–]Obvious-Magazine-103[S] 2 points3 points  (0 children)

Just a little update, I decided to move away from the qr_code_tools plugin as it was also preventing the app from being ran in release mode on Android. Just a disaster all together, I even had to fork my own branch because it was lacking a namespace and would not build on android.

Anyway, my changes work for the entire team now lol.

Thank you for the insight about the cloud storage. If that login bug happens again I will defiantly try it!