SwiftUI Firebase Chat 14: Save and Fetch Recent Messages

  Рет қаралды 7,945

Lets Build That App

Lets Build That App

Күн бұрын

Пікірлер: 21
@yakitorisamurai3583
@yakitorisamurai3583 Жыл бұрын
Don't worry about videos getting too long here. You give really good quality content. Some videos even last for 7 hours.
@seccat
@seccat 2 жыл бұрын
Instead of adding a document to the "recent_messages" collection for every message, you could do an update or insert. It would decrease the size of the collection and also allow you to update the email/profileImageUrl, if it has changed. You wouldn't need to remove rows on the client side. REMEMBER YOU GET BILLED BY THE NUMBER OF READS.
@9988khan
@9988khan 3 жыл бұрын
Loved your tuts 🔥🔥
@christianmoreno7390
@christianmoreno7390 10 ай бұрын
Did you skip a video or something?? Last vid only had fromId, toId, & text in FirebaseConstants. Now it has profileImageUrl, email, etc.......
@jemmytech5474
@jemmytech5474 2 жыл бұрын
Sir why do i see my self as current user in the main message view? So worried. If i send someone a message, the pic, and email converts to current user which is logged in
@ER-bi9ir
@ER-bi9ir 3 жыл бұрын
Hey Brian, I hope you don't mind me asking this question. I have purchased your tutorial before and asked this question but never got the answer. When you build these apps, where and how do you get all these images/icons? Do you work on them yourself? I know some icons are publicly available but some are unique, like icons I saw on your Travel Discovery app (in the top orange section just below the search box). I'd appreciate your answer. Thanks!
@LetsBuildThatApp
@LetsBuildThatApp 3 жыл бұрын
Yeah I just grab the icons from places on the web like icons8 or elements.envato. I then use PS to tweak the icons slightly to suit my needs for an iOS project. Rarely do I create my own icons but sometimes I'll make shapes with Photoshop.
@ER-bi9ir
@ER-bi9ir 3 жыл бұрын
@@LetsBuildThatApp ah ok that’s cool. I thought you might be working with a graphic designer behind the scene. Thank you! Been a follower since 2015.
@isabellasarota
@isabellasarota 2 жыл бұрын
Can you show me the code of how you initiate the "timestamp" as a Firebaseconstant? because I don't know why that I can't go to your website
@ericchu6503
@ericchu6503 Жыл бұрын
did you ever figure it out?
@ericchu6503
@ericchu6503 Жыл бұрын
struct FirebaseConstants { static let fromId = "fromId" static let toId = "toId" static let text = "text" let timestamp = "timestamp" }
@ozanbilgili
@ozanbilgili 3 жыл бұрын
cant see source codes of parts 12-13-14 :/
@LetsBuildThatApp
@LetsBuildThatApp 3 жыл бұрын
Just published the source code for all lessons on the lbta website. Enjoy.
@user-sq2kk8cs1e
@user-sq2kk8cs1e 3 жыл бұрын
Getting an error on this line: guard let currentUser = FirebaseManager.shared.currentUser else { return } Error message: Type of expression is ambiguous without more context
@David-id9un
@David-id9un 2 жыл бұрын
did you ever find a solution
@christinaalperi9377
@christinaalperi9377 2 жыл бұрын
@@David-id9un i think it should be shared.auth.currentUser
@Vitsky
@Vitsky 2 жыл бұрын
Add to FirebaseManager -> var currentUser: ChatUserModel? then in MainMessagesViewModel -> fetchCurrentUser() add FirebaseManager.shared.currentUser = ChatUserModel(data: data) after guard let data = snapshot?.data() else { return }
@YOSingh-i4x
@YOSingh-i4x Жыл бұрын
actually he write a wrong code the code should be guard let currentuserID = FirebaseManager.Shared.currenUser.UId else {return }
@sabahhussein617
@sabahhussein617 3 жыл бұрын
في اي مكان تعلمت هذا البرمجة قوية بصراح انت مبرمج عملاق ؟؟؟؟؟؟؟
@waldomonroy452
@waldomonroy452 3 жыл бұрын
Subbed
@TarangMindstorm
@TarangMindstorm 7 ай бұрын
I have a eror respond i entered in your website as Tarang
SwiftUI Firebase Chat 15: Firestore Codables Model Objects
20:29
Lets Build That App
Рет қаралды 9 М.
SwiftUI Firebase Chat 12: Fetch Messages Documents with Snapshot Listener
29:31
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
SwiftUI Firebase Chat 08: Show All Users for Creating Message
28:53
Lets Build That App
Рет қаралды 9 М.
SwiftUI Firebase Chat 01: Creating a Login Page
26:07
Lets Build That App
Рет қаралды 34 М.
SwiftUI Firebase Chat 06: Fetch Current User Firestore
32:51
Lets Build That App
Рет қаралды 16 М.
SwiftUI Firebase Chat 11: Send and Save Messages to Firestore
29:31
Lets Build That App
Рет қаралды 9 М.
iOS 15 Async Await JSON Fetching AsncImage Main Actors
31:28
Lets Build That App
Рет қаралды 14 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН