All Questions
11,435
questions
0
votes
0
answers
39
views
Main thread being blocked fetching from Firebase
Every time the posts are fetched from cache or not from cache, the app freezes and main thread seems to be blocked. What is causing it to be blocked in this code? I noticed it happens when a lot of ...
0
votes
1
answer
30
views
Swift – Authenticate and simultaneously fetch user Id from Firebase
Very new to Swift and just following some tutorials
I have a loginViewViewModel with a function to login a user.
However, I also want to grab the uid from Firebase after .signIn and print to the ...
-1
votes
0
answers
17
views
How to only allow users with accounts to login to my app [duplicate]
I am very new to iOS coding and using firebase so sorry if this is a dumb question.
I have an app that allows users to create accounts and save their info with firebase. A problem I face is that a ...
0
votes
0
answers
12
views
iOS Realtime Firebase Remote Config listener addOnConfigUpdateListener not returning the callback
I have been trying to implement the Firebase realtime remote config API. I already had the Firebase implementation added in the project.
Recently have been trying to implement ...
0
votes
1
answer
46
views
SwiftUI: Navigation bar duplicates after opening external link and returning to app
I'm experiencing an issue with my SwiftUI app where the navigation bar duplicates after opening an external link and returning to the app. This happens both on a physical iPhone 11 device and in the ...
0
votes
1
answer
32
views
How to reach the subcollection named after a UUID created by Firebase [duplicate]
i created this structure like this below.
func sendMessage(_ message: Message) {
let document = db.collection("messages")
.document(message.senderId)
.collection(message....
1
vote
1
answer
38
views
iOS Firestore permission denied even when using Firebase Authentication [closed]
I know this question has been asked a lot but a lot of the solutions say to change the Firestore rules and I don't want to do that. I'm wondering why they aren't working as is since I have ...
0
votes
0
answers
24
views
Could not build module errors in xcode
I am using Capacitor and have tried to integrate FireBase into my project also. I am receiving the following build errors:
I am using Xcode v15.4, and Pod version is v1.15.2
I have tried
rm -rf ~/...
0
votes
0
answers
72
views
Image Upload Fails with Error "Invalid Image Data" [closed]
I am developing an iOS app using Swift that requires users to upload profile images to Firebase Storage. Despite the image selection seemingly working fine, I keep encountering the following error ...
-1
votes
2
answers
49
views
How to add data in a Firestore Database (SwiftUI) [closed]
I'm having trouble in the setup steps for adding a document to my FireStore Database.
For reference, these are what my files currently look like:
FirestoreDemoApp.swift
import SwiftUI
import ...
-3
votes
1
answer
25
views
How to Structure a Firebase Database and Query Documents from District in Swift? [closed]
I am developing an app using SwiftUI and Swift. I have a Firebase database with the following structure:
Collection named products,
Documents representing countries,
Subcollections representing ...
0
votes
0
answers
28
views
Firebase Auth - SignIn with Google success even if accessToken is invalid
I have a question about the Google SSO and FirebaseAuth library. I have this code
class GoogleAuthService {
func signIn(completion: @escaping (Error?) -> Void) {
guard let ...
0
votes
1
answer
50
views
In swift, need precisions about the bearer from the migration from de API Cloud Messaging Legacy to the HTTP V1 of Firebase
Here is my new method to send push notifications for the HTTP V1:
I was on the Legacy version before.
func sendPushNotification(to token: String, title: String, body: String) {
//let ...
-1
votes
0
answers
102
views
Problem Downloading and Generating Live Photo from Firebase Storage in SwiftUI
I am working on an iOS application using SwiftUI where I want to convert a JPG and a MOV file to a live photo. I am utilizing the LivePhoto Class for this. The JPG and MOV files are displayed ...
-2
votes
2
answers
69
views
"Variable binding in a condition requires initializer" - Firebase iOS SDK producing error [closed]
Problem:
I am trying to use Firebase in my iOS app. I have installed the SDK using cocoapods as incstructed by Firebase's docs (here)
However, when I build by app I face an error of conditional ...