Hi, I am new to this and after the new Security changes to Cloud Storage my app is now unable to access to the files in the project bucket..
Anyone has any idea what I am supposed to do to make the App able to access to Firebase Storage again?
What are the security rules you are using right now? Are you getting an error? Did you change the settings within firebase? Could you provide more information that can be used to troubleshoot the app? errors , logs, settings, any information that can be helpful without any Personal Identifiable information to further assist you.
The app is still in early stages so I am using very strict rules to write.. Anyone can read the stored images though (public images from the internet)..
rules_version = '2';
service firebase.storage {match /b/{bucket}/o {
match /{allPaths=**} {
allow read : if request.auth != null;
}
match /images/<subdirectory>/{documents=**} {
allow write: if request.auth != null
&& request.auth.uid=='{my unique Firebase.Auth assigned USERID}';
}
match /images/profilepictures/mydocumet {
allow write: if request.auth != null
&& request.auth.uid=='{my unique Firebase.Auth assigned USERID}';
}
}
}
here is the runtime error messages when it fails...
W/GooglePlayServicesUtil( 2071): com.enisuysal.firestore_piclib requires the Google Play Store, but it is missing.
E/GooglePlayServicesUtil( 2071): GooglePlayServices not available due to error 9
W/Firestore( 2071): (24.3.1) [GrpcCallProvider]: Failed to update ssl context: com.google.android.gms.common.GooglePlayServicesNotAvailableException
I/TetheringManager( 2071): registerTetheringEventCallback:com.enisuysal.firestore_piclib
W/Firestore( 2071): (24.3.1) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds
W/Firestore( 2071):
W/Firestore( 2071): This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
I can access to the images directly outside the app using their URL...
I am happy to give more details if you need to.. Computer code shouldn't behave Random obviously. As I am not changing the code myself something else must be changing on the Google Servers and it APPEARS TO BE RANDOM from my perspective..
So just eliminate some possibilities I created 2 new users one by Chrome on my desktop and another by my Android Phone. Until now the only user was created using the Android Emulator Pixel 4 XL API 30...
Chrome didn't work (i.e. wasn't able to load images from the Storage.
Emulator also didn't work as I previously posted the error messages..
The Android Phone WORKED !!!! All images are downloaded and properly rendered as supposed to..
So I am thinking may be the "randomness" for the Android Emulator is coming from the Firebase.auth ???? However the Firestore Database works without a hitch every time so I am not sure what is going on... It is not a "slow internet" issue.. 130 Mbs..