digitalfabrik / entitlementcard

App for 'Digitale Berechtigungskarten', generally benefit card for volunteers or socially vulnerable groups in Germany. App for Android & iOS + Backend + Administration Web Portal – 100% Open Source.
MIT License
36 stars 3 forks source link

Card storage does not survive app restart #1265

Open f1sh1918 opened 7 months ago

f1sh1918 commented 7 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Create a Pixel 7 with API 33 (Play Store) emulator
  2. Activate a card
  3. Close the app and reopen it
  4. Card can't be loaded from storage

Expected behavior Card should be loaded from storage

Smartphone (please complete the following information):

Additional context Seems like an issue with FlutterSecureStorage https://github.com/mogol/flutter_secure_storage/issues/653 Open pr that has to be tested https://github.com/mogol/flutter_secure_storage/pull/664

ztefanie commented 7 months ago

API level 33 is not working with android 14 or higher. Which versions are creating this bug?

vthejay commented 7 months ago

Can not reproduce this. Browser Stack- Android 14, Pixel 8, The card is still there after closing the App.

vthejay commented 7 months ago

Reported bug from user: Device: Google Pixel 7 App version name: 2024.1.5 Android version: Android 14 (SDK 34)

ztefanie commented 7 months ago

Tried to reproduce this unsuccessfully. Browserstack Pixel 8 with Android 14 and Pixel 7 with Android 13. Force stopped the app and cleared cache. Card was still there. Also tried to reproduce locally on differend emulators with differend android version and on my real device Samsung Galaxy A33 with Android 13.

vthejay commented 7 months ago

Reported per Mail in the last 7 days: The same problem happens here:

  1. Sony Experia i13113, Android-Version 10; App Version does not matter. In all Versions of the App.
  2. Xiaomi Redmi Note 12, Androidversion 14 UKQ1.230917.001, App Version 2024.1.5

I could not reproduce this as well.

f1sh1918 commented 6 months ago

Maybe fixed with #1293. Will have to check with upcoming release

dkehne commented 4 months ago

It occured again.

Device: [Samsung Galaxy S21 5G] Device language: German App version code: 155 App version name: 2024.3.16 Android version: [Android 14 (SDK 34)]

Mit Android 14 kannst du die Karte aktivieren und sobald du die App komplett schließt ist beim nächsten Besuch wieder keine Karte aktiviert. Hab etz schon paar mal die App neu installiert und ändert sich nix.

f1sh1918 commented 2 months ago

New release was deployed on production that includes a new SecureLocalStorage version. We should check the sentry logs and wait if it will be reported

f1sh1918 commented 2 months ago

There was a new review on google console that it still occures. Maybe we can reproduce it on browserstack

f1sh1918 commented 2 months ago

I tested on browserstack version 2024.5.5 with Galaxy S24 Ultra on Android 14 and everythings works as expected

f1sh1918 commented 1 week ago

Reported on Android Handy Android Version 14 - One UI-Version 6.1 SAMSUNG Galaxy S24 Version Ehrenamtskarte: 2024.8.1

f1sh1918 commented 6 days ago

Tested on browserstack 2024.8.1 with Galaxy S24 on Android14. Couldn't reproduce the issue. Daniel ordered a real device, i will test that next week

f1sh1918 commented 2 days ago

Tested on real S24 device. Android Version 14 - One UI-Version 6.1 SAMSUNG Galaxy S24 Version Ehrenamtskarte: 2024.8.1

Not reproducible. Even a clean cache and device restart did not delete the pass.