firebase

Remove First name & last name field from firebase auth - email

久未见 提交于 2021-02-11 12:20:14
问题 I am using firebase auth for my website i have enabled Google, facebook & Email based auth everything works fine, But when using Email login Users are required to enter Firstname But i don't need these details and want to keep the user login / signup process short Question : Can we remove the First & Lastname fields from firebase auth email 回答1: From the documentation it seems you can toggle the requirement to enter a name with requireDisplayName . From that link comes this example: ui.start(

Why am I getting “undefined” when I try to retrieve this array of objects from firebase?

旧城冷巷雨未停 提交于 2021-02-11 12:19:05
问题 I'm building this exercise which involves the user filling out a form, and the info from the form is pushed into a firebase database and it produces a card which contains the info. There are basically three functions: addBookToLibrary() which takes the info from the form after the user hits the submit button and puts it into firebase, render() which draws the card with the info on it, and Book which creates the object from the data entered into the form. I decided to add retrievefromDatabase(

Can I get a facebook access token from firebase.auth().currentUser?

安稳与你 提交于 2021-02-11 12:15:06
问题 First after I login facebook via firebase auth as below let provider = new firebase.auth.FacebookAuthProvider() firebase.auth().signInWithPopup(provider).then((result)=>{ console.log(result) }) I found a facebookAccessToken (which I will use for graphAPI) in result but after I refresh a page , when a page did mount I call a function as below let currentUser = firebase.auth().currentUser console.log(currentUser) I can't found a facebookAccessToken in currentUser Can I get a facebookAccessToken

Firebase cloud function http request crashing

╄→尐↘猪︶ㄣ 提交于 2021-02-11 12:14:06
问题 I'm trying to send expo push notification via firebase cloud functions, in order to send notifications from the web app to devices that have downloaded the mobile app. When I send the request from Postman, it works just fine... i get the ok response and the notification shows up on my phone. But when I try to make the request from the web app, i get this in the functions log: Function execution took 22 ms, finished with status: 'crash' Any ideas why is this happening? Couldn't find anything

How to send notification to multiple device token using firebase cloud functions

筅森魡賤 提交于 2021-02-11 12:11:51
问题 I am new in using Firebase Cloud Functions and JavaScript and I was able to send notification to a single device using Firebase Cloud Functions(JavaScript). Now I am trying to send push notification to multiple device token and I think I have a problem on it. I want to send the notification to these device tokens in my firebase database: /receivers /event1 /uid1: device_token1 /uid2: device_token2 /uid3: device_token3 /uid4: device_token4 This is my code so far but it doesn't work.. exports

How to send notification to multiple device token using firebase cloud functions

烂漫一生 提交于 2021-02-11 12:10:12
问题 I am new in using Firebase Cloud Functions and JavaScript and I was able to send notification to a single device using Firebase Cloud Functions(JavaScript). Now I am trying to send push notification to multiple device token and I think I have a problem on it. I want to send the notification to these device tokens in my firebase database: /receivers /event1 /uid1: device_token1 /uid2: device_token2 /uid3: device_token3 /uid4: device_token4 This is my code so far but it doesn't work.. exports

Firebase - Failing to install firebase using npm but yarn works

Deadly 提交于 2021-02-11 12:06:40
问题 λ npm -g install firebase npm ERR! Unexpected end of JSON input while parsing near '...9gwBD9c+ThTWWmNBXcfJZ' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\2nchy\AppData\Roaming\npm-cache\_logs\2020-07-13T18_19_46_173Z-debug.log I increased timeout seconds in .npmrc to 12,000 and downgraded npm to 6.3.17 , cleared the cache as it was suggested and even installed it from an empty directory but still getting an almost same error UPDATE Uninstalled nodejs and

Keras Deploy for Tensorflow.js Usage

帅比萌擦擦* 提交于 2021-02-11 12:05:04
问题 I need to be able to deploy a keras model for Tensorflow.js prediction, but the Firebase docs only seem to support a TFLite object, which tf.js cannot accept. Tf.js appears to accept JSON files for loading (loadGraphModel() / loadLayersModel() ), but not a keras SavedModel (.pb + /assets + /variables). How can I attain this goal? Note for the Tensorflow.js portion: There are a lot of pointers to the tfjs_converter, but the closest API function offered to what I'm looking for is the

Firebase - Failing to install firebase using npm but yarn works

梦想与她 提交于 2021-02-11 12:04:41
问题 λ npm -g install firebase npm ERR! Unexpected end of JSON input while parsing near '...9gwBD9c+ThTWWmNBXcfJZ' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\2nchy\AppData\Roaming\npm-cache\_logs\2020-07-13T18_19_46_173Z-debug.log I increased timeout seconds in .npmrc to 12,000 and downgraded npm to 6.3.17 , cleared the cache as it was suggested and even installed it from an empty directory but still getting an almost same error UPDATE Uninstalled nodejs and

React Native Push Notification Not Working Properly

北战南征 提交于 2021-02-11 12:03:33
问题 Push Notification function: PushNotification.configure({ largeIcon: "ic_launcher", smallIcon: "ic_notification", onNotification: function (notification) { PushNotification.localNotification({ autoCancel: true, message: 'Test Message', title: 'Test Message', vibrate: true, vibration: 300, playSound: true, soundName: 'default' }) console.log(notification) }, }); Problem: When I run application, if I send notification from php server I am getting response in console.log but condition 1: