I've moved to 200.7 some time ago and applied credentials persistence (I am using OAuth for AGOL sign in). My code is just 1 line in `main.dart` right before `runApp()` call:
ArcGISEnvironment.authenticationManager.arcGISCredentialStore = await ArcGISCredentialStore.initPersistentStore();
I see some unexpected behaviour on iOS related to this. Here are the steps.
- Open app, load some data requiring authentication (say, secure feature layer)
- You will be asked for credentials. Data is loaded correctly.
- Uninstall app and install it again
- Load the same data. App does not prompt OAuth window, but instead just loads feature layer.
Is it intended? Maybe, I'm doing something wrong? But I don't see any parameters to control this: I don't save credentials in iCloud, for example.
Android, in turn, works as expected: it does not ask for credentials again after app restarts, but does - when app is removed and installed again.
My testing devices are iPhone 15 simulator w/ iOS 17.2 and iPhone 16 simulator w/ iOS 18.4