My code is trying to use sd_setImage to load an image stored in a Firebase Storage. I'm using the Firebase Emulator and have loaded some images in a folder in the emulator under, well, "images". I've attempted this both in my own app and in the sample app from FirebaseUI-demo.
Steps to reproduce:
Follow the instructions to set up to run the samples app locally.
Added line to FUIAppDelegate.swift use the emulator:
I've further isolated this to the use of .progressiveLoad in the option of sd_setImage(with: self.storageRef,. Without .progressiveLoad, the sample does not crash. With .progressiveLoad, it crashes.
Step 1: Are you in the right place?
I believe so.
Step 2: Describe your environment
Step 3: Describe the problem:
My code is trying to use sd_setImage to load an image stored in a Firebase Storage. I'm using the Firebase Emulator and have loaded some images in a folder in the emulator under, well, "images". I've attempted this both in my own app and in the sample app from FirebaseUI-demo.
Steps to reproduce:
Follow the instructions to set up to run the samples app locally. Added line to FUIAppDelegate.swift use the emulator:
Storage.storage().useEmulator(withHost:"localhost", port:9199)
Observed Results:
Crashes with exception:
The emulator log implies the fetch succeeded:
And using the URL in the browser succeeds as well, the photo is shown. http://localhost:9199/v0/b/xxxxxx-3df69.appspot.com/o/images%2Fbess.jpg?alt=media
Expected Results:
Image loads with no issues.
Relevant Code:
Added line in FUIAppDelegate.swift to use the emulator:
Storage.storage().useEmulator(withHost:"localhost", port:9199)