firebase

firebase push notification error spring boot server side

ぐ巨炮叔叔 提交于 2021-02-10 17:52:02
问题 iam trying to send a notification from spring boot server side to client side android .. the server is working great and all things is good 2020-09-01 08:13:07.691 INFO 18941 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 2020-09-01 08:13:07.691 INFO 18941 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging

Property 'firestore' does not exist on type 'FirebaseNamespace' with Firebase v7.15.1

这一生的挚爱 提交于 2021-02-10 17:51:37
问题 When I upgrade from firebase v7.14.3 to v7.15.1 I get the following build error / typescript error: TS2339: Property 'firestore' does not exist on type 'FirebaseNamespace'. I import and use Firestore as following: import {firebase} from '@firebase/app'; import '@firebase/firestore'; const firestore: firebase.firestore.Firestore = firebase.firestore(); => firebase.firestore() is my issue. I have probably missed the CHANGELOG, any help on how to migrate this appreciated! 回答1: I have always

firebase push notification error spring boot server side

百般思念 提交于 2021-02-10 17:48:05
问题 iam trying to send a notification from spring boot server side to client side android .. the server is working great and all things is good 2020-09-01 08:13:07.691 INFO 18941 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 2020-09-01 08:13:07.691 INFO 18941 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging

updatePhoneNumber failed: First argument “phoneCredential” must be a valid phone credential

我怕爱的太早我们不能终老 提交于 2021-02-10 17:38:15
问题 I am trying to updatePhoneNumber and keep getting the following error above. Looking at the docs I was under the impressing this is a method? Js: user.updatePhoneNumber({ phoneNumber: "+15618104444", }); I tried setting this in the updateProfile Method as well and still no luck. user.updateProfile({ displayName: displayName, photoURL: photoURL, phoneNumber: "+15618104444" }); 回答1: updatePhoneNumber requires a phone credential since the phone number needs to be verified by SMS. // 'recaptcha

android-firebase childEventListener in service

假如想象 提交于 2021-02-10 17:35:11
问题 in my android application i am trying to implement childEventListener of firebase database even when the app is not active. means whenever the firebase db particular child has a new entry it should notify the user.. so till now i have done with this, i have declared service in manifest file as <service android:name=".ChildEventListener"/> then my ChildEventListener class is as follows public class ChildEventListener extends Service { FirebaseAuth auth; NotificationCompat.Builder builder;

android-firebase childEventListener in service

此生再无相见时 提交于 2021-02-10 17:34:45
问题 in my android application i am trying to implement childEventListener of firebase database even when the app is not active. means whenever the firebase db particular child has a new entry it should notify the user.. so till now i have done with this, i have declared service in manifest file as <service android:name=".ChildEventListener"/> then my ChildEventListener class is as follows public class ChildEventListener extends Service { FirebaseAuth auth; NotificationCompat.Builder builder;

RNFirebase core module was not found natively on iOS - Not fixed

☆樱花仙子☆ 提交于 2021-02-10 17:31:28
问题 Soo I am continuously getting this error after doing all available solutions here such as this one: Error: RNFirebase core module was not found natively on iOS. I already followed that step by step. I updated my pod using pod update, installed my pods using pod install, all was successful but after running the app again with react-native run-ios, I still get that error after building. Do you guys have any idea as to why it doesn't get fixed? Edit This is the exact error I get from terminal:

Firebase Cloud Functions bitly example throwing error

谁说胖子不能爱 提交于 2021-02-10 17:27:47
问题 I'm following the example from the github repository to short a link url https://github.com/firebase/functions-samples/tree/Node-8/url-shortener The error is giving is the following 12:49:56.472 a. m. shortenUrl Function execution took 509 ms, finished with status: 'error' 12:49:56.464 a. m. shortenUrl RequestError: Error: getaddrinfo EAI_AGAIN api-ssl.bitly.com:443 at new RequestError (/srv/node_modules/request-promise-core/lib/errors.js:14:15) at Request.plumbing.callback (/srv/node_modules

Rule entries duplicates firebase not working

南笙酒味 提交于 2021-02-10 16:59:40
问题 I have an application in android that registers sellers, which have a unique email, I am storing them in firebase. Create a rule to not allow duplicates to be added but it does not seem to work. What am I doing wrong? { "rules": { ".read": true, ".write": true, "sellers": { "$seller": { "email": { ".write": "!data.exists()" } } } } } my method to add public void addSeller(Seller seller){ HashMap<String,Seller> map= new HashMap<>() ; String email = seller.getEmail().replace(".",","); map.put

Rule entries duplicates firebase not working

本秂侑毒 提交于 2021-02-10 16:59:32
问题 I have an application in android that registers sellers, which have a unique email, I am storing them in firebase. Create a rule to not allow duplicates to be added but it does not seem to work. What am I doing wrong? { "rules": { ".read": true, ".write": true, "sellers": { "$seller": { "email": { ".write": "!data.exists()" } } } } } my method to add public void addSeller(Seller seller){ HashMap<String,Seller> map= new HashMap<>() ; String email = seller.getEmail().replace(".",","); map.put