firebase-authentication

Firebase Phone auth fails to pick up on remote notifications registration

£可爱£侵袭症+ 提交于 2020-08-02 14:52:36
问题 Currently struggling with the following error showing up in logs: <Error> [Firebase/Auth][I-AUT000015] The UIApplicationDelegate must handle remote notifcation for phone number authentication to work. as well as this NSError object when calling verifyPhoneNumber:completion: : @"NSLocalizedDescription" : @"If app delegate swizzling is disabled, remote notifications received by UIApplicationDelegate need to be forwarded to FIRAuth's canHandleNotificaton: method." @"error_name" : @"ERROR

Firebase Phone auth fails to pick up on remote notifications registration

前提是你 提交于 2020-08-02 14:51:11
问题 Currently struggling with the following error showing up in logs: <Error> [Firebase/Auth][I-AUT000015] The UIApplicationDelegate must handle remote notifcation for phone number authentication to work. as well as this NSError object when calling verifyPhoneNumber:completion: : @"NSLocalizedDescription" : @"If app delegate swizzling is disabled, remote notifications received by UIApplicationDelegate need to be forwarded to FIRAuth's canHandleNotificaton: method." @"error_name" : @"ERROR

How constant is the Firebase Anonymous ID

荒凉一梦 提交于 2020-08-01 07:07:58
问题 I'm building an app with Firebase Real-Time Database. The app will be mainly offline at first, but we are planning an online update later. I'm planning to use the anonymous sign in, to get an ID for the user and store all his data under this ID: Auth.auth().signInAnonymously(completion: { (user, error) -> Void }) After signing in I get an ID that looks like something like this: pCfgFOvEYEYvfWHaaaaavKgs8h33 Is it guaranteed that this ID will ALWAYS stay unchanged on a given device? I couldn't

How constant is the Firebase Anonymous ID

我怕爱的太早我们不能终老 提交于 2020-08-01 07:05:55
问题 I'm building an app with Firebase Real-Time Database. The app will be mainly offline at first, but we are planning an online update later. I'm planning to use the anonymous sign in, to get an ID for the user and store all his data under this ID: Auth.auth().signInAnonymously(completion: { (user, error) -> Void }) After signing in I get an ID that looks like something like this: pCfgFOvEYEYvfWHaaaaavKgs8h33 Is it guaranteed that this ID will ALWAYS stay unchanged on a given device? I couldn't

How to encrypt user data in Firebase

亡梦爱人 提交于 2020-07-31 06:22:05
问题 I am using the email/password sign in method for Firebase. I would like to encrypt the data users save into the realtime database before sending it to the database. Firebase already handle the user password, but can I somehow use it to encrypt data which can't be decrypted by me only the client? It would be nice if I could achieve it with the client sdk. So my flow would be something like this: User sign in with it's credentials (which is handled by firebase itself) User encrypt some data

How to encrypt user data in Firebase

你离开我真会死。 提交于 2020-07-31 06:21:10
问题 I am using the email/password sign in method for Firebase. I would like to encrypt the data users save into the realtime database before sending it to the database. Firebase already handle the user password, but can I somehow use it to encrypt data which can't be decrypted by me only the client? It would be nice if I could achieve it with the client sdk. So my flow would be something like this: User sign in with it's credentials (which is handled by firebase itself) User encrypt some data

How do I relate new data to a currently logged in user in Firebase?

醉酒当歌 提交于 2020-07-31 04:20:07
问题 I want to add a student list to my Firebase realtime database. When a teacher adds a new student, I want the currently logged-in teachers ID to relate to the student they just added. When I compile the following I get my "Student Added" toast on the emulator but nothing shows up on Firebase - no new parent of "students" and no new entries. Can someone see where I'm going wrong? I think using datasnapshot to get thecurrentUserId from Firebase might be long-winded but when I just used the

How do I relate new data to a currently logged in user in Firebase?

扶醉桌前 提交于 2020-07-31 04:19:55
问题 I want to add a student list to my Firebase realtime database. When a teacher adds a new student, I want the currently logged-in teachers ID to relate to the student they just added. When I compile the following I get my "Student Added" toast on the emulator but nothing shows up on Firebase - no new parent of "students" and no new entries. Can someone see where I'm going wrong? I think using datasnapshot to get thecurrentUserId from Firebase might be long-winded but when I just used the

How do I relate new data to a currently logged in user in Firebase?

橙三吉。 提交于 2020-07-31 04:19:47
问题 I want to add a student list to my Firebase realtime database. When a teacher adds a new student, I want the currently logged-in teachers ID to relate to the student they just added. When I compile the following I get my "Student Added" toast on the emulator but nothing shows up on Firebase - no new parent of "students" and no new entries. Can someone see where I'm going wrong? I think using datasnapshot to get thecurrentUserId from Firebase might be long-winded but when I just used the

Firebase security rules - is Auth generated UID ought to be kept secret? [duplicate]

…衆ロ難τιáo~ 提交于 2020-07-30 01:54:12
问题 This question already has an answer here : Firebase - Is auth.uid a shared secret? (1 answer) Closed 2 years ago . I've been reading Firebase Realtime Database Security Rules guides (https://firebase.google.com/docs/database/security), and I'm a bit confused with regards to should I keep the UID generated by the Firebase Auth (lets say if my App users use Facebook to authenticate themselves) secret? I have this kind of data structure: users UID Lots of nodes of personal data to be read