firebase

How to set up profile image from firebase database

邮差的信 提交于 2021-02-17 06:10:11
问题 Hey I am new to Xcode and need of assistance in uploading my profile image from firebase database to my user profile. I have receive no errors so far but the image is not appearing when my user logs in, the image is already stored in firebase but when I attach the UIImageView to the user profile the image shows up blank do anyone have a solution to fix this code to make my image appear on the user profile once they log in it should be automatic? typealias blockCompletedWith = (Bool, String) -

How to retrieve data from Firebase into a ListView (with custom Array Adapter)

做~自己de王妃 提交于 2021-02-17 05:45:17
问题 I have currently designed a place explorer app with 3 items displayed in a list view. When a user logs in he will find a list of categories. On clicking a category the list of places under that category will appear. I have linked the app with Firebase. Now, I want to display 2 items ( placeTitle and placeDesc ) from the data stored in the firebase into the list view. I am unable to load the data into the ListView . Shopping Activity: public class ShoppingActivity extends AppCompatActivity {

Firestore delete vs update time and performance

妖精的绣舞 提交于 2021-02-17 05:38:07
问题 I have coded a match making system and this system works like that --> when a create operation came to firestore it matches with an older record and the cloud function deletes both of them. But i wonder that when 2 new records are created, is there any chance for matching these 2 with the same old record because the deletion process takes some time? Also, if i do that process with update, is it faster than delete? EDIT: Here is my matchMaker Cloud Function: exports.matchMaker = functions

Firebase cloud messaging sendToDevice works properly but sendMulticast fails for the same list of tokens

会有一股神秘感。 提交于 2021-02-17 05:30:16
问题 For certain types of messages, I want to target users by FIRTokens vs topic, which are stored in my real-time database. I load these tokens with async/await and then decide if I want to send notifications to a topic vs a smaller list of users. The data loading code works as expected. But what's odd is that if I use .sendMulticast(payload) , the notifications fail for all tokens in the list. On the other hand if I use .sendToDevice(adminFIRTokens, payload) the notification goes successfully to

Remove email of third party provider when unlinking?

牧云@^-^@ 提交于 2021-02-17 05:22:27
问题 I try unlinking apple porvider as sign In for my firebase auth. The unlink is successful but the email still presist, so when the user sign in with apple again it allows them to read their data because of the email persistence. The problem is not local or cache problem, its firebase not erasing email record since I can see the Apple email as an identitifer while the Apple logo for provider goes away when I unlink. I am using Phone Auth, and option to link Apple. How do I remove email from

Remove email of third party provider when unlinking?

自古美人都是妖i 提交于 2021-02-17 05:22:08
问题 I try unlinking apple porvider as sign In for my firebase auth. The unlink is successful but the email still presist, so when the user sign in with apple again it allows them to read their data because of the email persistence. The problem is not local or cache problem, its firebase not erasing email record since I can see the Apple email as an identitifer while the Apple logo for provider goes away when I unlink. I am using Phone Auth, and option to link Apple. How do I remove email from

How to integrate LINE login into Firebase Auth

你。 提交于 2021-02-17 05:20:34
问题 I did some research and experiments on integrating LINE login with Firebase Auth using Flutter. I have some questions: Looks like in Firebase Auth, there are AuthProvider , and in Flutter source code, I also found an OAuthProvider . There you can create Credential to include your idToken and access token. But I don't know how to specify the providerId in that Credential . I guess it is not possible, because Firebase hasn't integrate LINE login. The client side api: logInWithCredential can

How to fetch data from two firestore collection, merge and display it

徘徊边缘 提交于 2021-02-17 05:20:12
问题 I have two collections namely CURRENCY_PAIR and CURRENCY_PAIR_LIMIT . The CURRENCY_PAIR collection has the following fields in each document: CurrencyPair_Name CurrencyPair_id Currency_AskPrice Currency_BidPrice and the CURRENCY_PAIR_LIMIT collection contain the following fields in each document: Limit_id Limit_Buy_Price_Threshhold Limit_Sell_Price_Threshhold Limit_Currency_Pair_Id (references to the Currencypair_Id in the CURRENCY_PAIR collection) I wanted to map each CurrencyPair_Name to

FirebaseAuth.getInstance() always return null

柔情痞子 提交于 2021-02-17 03:38:05
问题 I know I can see so many questions on this topic on stackoverflow and I have tried almost all of them and haven't worked yet so this is my only option to post a new question. My problem is FirebaseAuth.getInstance always return null even though I have initialized the FirebaseApp. My main purpose is to use phone authenticaiton from firebase and I have enabled it in firebase console. Things I have done- Built firebase project in firebase console Added SHA-1 key downloaded the json file and

Need a way to extract specific data from Firebase RealtimeDB to Google Sheets

扶醉桌前 提交于 2021-02-17 03:31:32
问题 I'm trying to transfer Firebase RealtimeDB data into Google Sheets using AppScript. I need a way to extract ID, Department, and Surname strings from the DB while it is received as such from the Logs below. I use .childByAutoID() which has the following effect on the DB. My database: Desired result in spreadsheet: function writeSheets() { var firebaseUrl = "<my-database>.firebaseio.com/Attendees"; var base = FirebaseApp.getDatabaseByUrl(firebaseUrl); var data = base.getData(); console.log(JSON