SwiftUI Firebase Chat 03: Save Images to Firebase Storage

  Рет қаралды 22,843

Lets Build That App

Lets Build That App

Күн бұрын

Пікірлер: 44
@Ro_7_7
@Ro_7_7 5 ай бұрын
For anyone watching now you need to change your storage rules in Firebase to "allow read, write: if request.auth != null;" changing that line should fix any 403 error messages when uploading / creating an account within the app.
@nostused9716
@nostused9716 5 ай бұрын
You saved my life
@ericchu6503
@ericchu6503 Жыл бұрын
Can you provide the image picker code you used?
@sxteesx
@sxteesx 3 жыл бұрын
Keep up the juicy content Professor Brain :)
@stephaniewagstaff6563
@stephaniewagstaff6563 Жыл бұрын
I noticed a lot of comments not being responded to 😒which sucks because I'm excited about these courses. I copied your struct ImagePicker word for word and it will not wort. Could you direct me to the file you used please?
@nemoooo5767
@nemoooo5767 2 жыл бұрын
Thread 1: "The default FirebaseApp instance must be configured before the default Authinstance can be initialized. One way to ensure this is to call `FirebaseApp.configure()` in the App Delegate's `application(_:didFinishLaunchingWithOptions:)` (or the `@main` struct's initializer in SwiftUI)." how do i fix it?
@christianalexandernonis2260
@christianalexandernonis2260 2 жыл бұрын
I was wondering why you didn’t put the FirebaseApp.configure() inside the @main App
@1HourBule
@1HourBule 3 жыл бұрын
Would be interesting to see how you handle Video with SwiftUI
@lotxnna
@lotxnna 3 жыл бұрын
Your videos are always so amazing. Could you please show how to get an audio file stored on Firebase Storage and play it in app? Also how to access a property that has an array of References. (The firestore reference type) People often make videos using images but there are so few videos that use audio file examples and you make some of the best iOS videos out there so I thought I would ask. Really appreciate all of your wonderful videos. Thank you.
@danielwatson6529
@danielwatson6529 2 жыл бұрын
i’ve figured audio, but not images 🤣 swapsies??
@alanadev
@alanadev 2 жыл бұрын
ohhhhh i'd like to know this too!!
@lukasalipur8892
@lukasalipur8892 2 жыл бұрын
For audio, you need to use AVPlayer framework, remember to use just AVPlayer not AVAudioPlayer because the AVPlayer is for streaming(for your case you want to stream it from firebase) and AVAudioPlayer is for local audio files. Check up some tutorials on how to stream audio files swiftUI. Best regards.
@mnesvat
@mnesvat 3 жыл бұрын
Thanks for the good content, appreciated :)
@의의-y9z
@의의-y9z 2 жыл бұрын
"Thread running at QOS_CLASS_USER_INTERACTIVE waiting on a lower QoS thread running at QOS_CLASS_BACKGROUND. Investigate ways to avoid priority inversions" An error occurs. How can I solve this ?
@FranciscoHernandez-ij3kd
@FranciscoHernandez-ij3kd 3 жыл бұрын
Thank you for your hard work .
@mihailsalari
@mihailsalari 3 жыл бұрын
Good job, man! I like your videos!
@johnsorensen4696
@johnsorensen4696 3 жыл бұрын
Why does the updateUIViewController function have no content?
@dheerajt9433
@dheerajt9433 2 жыл бұрын
I have a quick question.. When declaring the error statement, when we do self.loginStatusMessage, instead of appending \err(), can I just keep the text so that once there is an error it isn't a super long message that comes up in red text?
@danielwatson6529
@danielwatson6529 2 жыл бұрын
HM, what I don't understand is how you were able to view the doggy photo with the url. because you where Authurised in the simulator NOT the browser, so id expect that not to work, could anyone access that picture?
@denglishiu
@denglishiu Жыл бұрын
Everything worked great while I was following along. Now I get an error when when creating a log in and uploading a photo. "Error Domain=FIRFirestoreErrorDomain Code=7 "Missing or insufficient permissions." UserInfo={NSLocalizedDescription=Missing or insufficient permissions." My Firebase storage permissions say: " allow read, write: if request.auth != null;"
@hide-kun1660
@hide-kun1660 Жыл бұрын
Hello Sir, would you mind to give solutions to this error - Error Domain=FIRFirestoreErrorDomain Code=7 "Missing or insufficient permissions." UserInfo={NSLocalizedDescription=Missing or insufficient permissions.} [It's shows after image uploaded to cloudstorage] Due to this error anything else is not working. Thank you so much!!
@denglishiu
@denglishiu Жыл бұрын
Did you find a solution? I'm having the same problem.
@I-zl1eo
@I-zl1eo 8 ай бұрын
in your rules change false to true . allow read, write: if true;
@iDenish-u4s
@iDenish-u4s 3 жыл бұрын
What happened to your video on the corner, catching you from Africa...
@sonphan8789
@sonphan8789 2 жыл бұрын
Many thanks your videos. On this video i got a prolem: when i create account then an err occurs : 403 permission denie. I dont know how to fix it, can you teach me?
@sonphan8789
@sonphan8789 2 жыл бұрын
Successfuly to create on firebase but cant upload the image cause got err 403 ...
@nemoooo5767
@nemoooo5767 2 жыл бұрын
@@sonphan8789 làm thế nào để giải quyết nó
@edison1
@edison1 2 жыл бұрын
please make new videos/courses
@Christopher-zr1ib
@Christopher-zr1ib 2 жыл бұрын
There’s not a lot of code, but there’s a lot of code. Which is it?
@LetsBuildThatApp
@LetsBuildThatApp 2 жыл бұрын
There’s a lot of boiler plate code which is just how it is with programming.
@yangzhao6938
@yangzhao6938 2 жыл бұрын
Hello, I have problem to update an image to firebase storage, and I am try to download the code directly from your website, the samething, it cannot update an image, and I really don't know how to fix it, it shows error code 403.
@yangzhao6938
@yangzhao6938 2 жыл бұрын
I fix it by replace the code below on firebase console: rules_version = '2'; service firebase.storage { match /b/{bucket}/o { match /{allPaths=**} { allow read: if true; allow write: if request.auth!=null; } } }
@ayberkmogol
@ayberkmogol 2 жыл бұрын
@@yangzhao6938 thx a lot
@lucas-bw6zu
@lucas-bw6zu Жыл бұрын
@@yangzhao6938 BEAST
@rohitkhandelwal2894
@rohitkhandelwal2894 Жыл бұрын
@@yangzhao6938 thx a lot this worked
@Forseee
@Forseee Жыл бұрын
@@yangzhao6938thank you
@ozanbilgili
@ozanbilgili 3 жыл бұрын
I am encountering an error like this; Cannot find type 'Storage' in scope. I also get this error when I try to copy the source code. Could you please help? Also, thank you very much for this beautiful video series. class FirebaseManager: NSObject { let auth: Auth let storage: Storage static let shared = FirebaseManager() override init() { FirebaseApp.configure() self.auth = Auth.auth() self.storage = Storage.storage() super.init() } }
@LetsBuildThatApp
@LetsBuildThatApp 3 жыл бұрын
You have to make sure you’ve installed Storage through SPM. You can delete it and reinstall to make sure.
@ozanbilgili
@ozanbilgili 3 жыл бұрын
@@LetsBuildThatApp Ty, must always be tried first --> delete and reinstall :D
@당근이-i7p
@당근이-i7p 2 жыл бұрын
try import FirebaseStorage
@ShadowUCK
@ShadowUCK 2 жыл бұрын
@@당근이-i7p love u
@thesadnessinyou
@thesadnessinyou Жыл бұрын
I was looking for this, @@당근이-i7p!
@muffinmuncher
@muffinmuncher 2 жыл бұрын
you can solve the preview in Firebase Storage issue by appending .jpeg to the end of the filename when you upload it
@emielv8365
@emielv8365 2 жыл бұрын
21:20 aah finally 😂
SwiftUI Firebase Chat 04: Installing Firestore and Saving User Data Collection
18:08
SwiftUI Firebase Chat 01: Creating a Login Page
26:07
Lets Build That App
Рет қаралды 33 М.
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 146 МЛН
СОБАКА ВЕРНУЛА ТАБАЛАПКИ😱#shorts
00:25
INNA SERG
Рет қаралды 2,5 МЛН
New SwiftUI Photo Picker - Single & Multiple Selection
12:42
Sean Allen
Рет қаралды 11 М.
Ch. 8.17 Part 1: Saving Images in Cloud Storage for Firebase using SwiftUI
21:35
Prof. John Gallaugher
Рет қаралды 2,4 М.
Uploading Images to Firebase Storage (and retrieving them)
37:33
CodeWithChris
Рет қаралды 102 М.
SwiftUI Firebase Chat 02: Signing in with Firebase Auth
27:34
Lets Build That App
Рет қаралды 25 М.
Ch. 8.19 Loading Images from Firebase Storage
13:35
Prof. John Gallaugher
Рет қаралды 2,5 М.