This is an example repro for the issue firebase/quickstart-unity#1115. Which outlines that when on iOS attempting to do any read from storage that requires the auth token to not be null will fail with an 'User' is not authorized to perform the desired action exception regardless of their authentication state.
- A firebase project which has Auth with Anonymous Login Enabled, Firestore and Storage set up
- Firestore with any kind of security rules which check for the user auth state. Our settings.
- Storage with any kind of security rules which check for the user auth state. Our settings.
- Import [Auth, Storage, Firestore] 8.1.0 SDKs
- Import your
google-services.json+google-services.plistinto the assets folder. - Open up
Scenes/Repro - Select the gameobject
ReproCanvas/FirestoreAreaand setup what data you want to read + write (Document Fields do not matter). Our Inspector + Our Database - Select the gameobject
ReproCanvas/StorageAreaand setup the data you want to read + write (Content of the files does not matter). Our Inspector + Our Database - Finally make and deploy an iOS build, and run the app.
- Notice that only Storage read fails, even though everything else succeeds and the database should allow for the data.