我正在开发一个带有react本机(v0.60)的应用程序,我需要推送通知。我决定使用firebase作为服务,但在初始化过程中出现了错误。
代码:
import {AppRegistry} from 'react-native';
import Config from 'react-native-config'
import * as firebase from 'firebase/app'
import '@firebase/messaging'
import firebaseConfig from 'App/src/
我有一个简单的Firebase函数如下所示。通过javascript ( CORS )访问时,函数的飞行前选项请求(CORS标准的一部分)返回302重定向到url,以
https://accounts.google.com/ServiceLogin?service=ah&passive=true&continue=https://appengine.google.com/_ah/conflogin%3Fcontinue%3D
以我函数的URL结尾。以下是所讨论的整个功能:
import * as functions from 'firebase-functions
我收到了错误的盖茨比开发。它非常类似于这个版本:,但我收到了gatsby开发的错误,而不是gatsby构建的错误。我做了很多研究,但找不到有效的解决办法。一开始,我在gatsby构建时遇到了问题,比如在本文中:,但是我用自定义onCreateWebpackConfig解决了这个问题(您可以在下面找到它)。
堆栈:- Gatsby -Firebase(可能出现错误)- Redux
我还删除了.cache和node_modules,并重新安装了所有的东西,但是它没有工作。
误差
There was an error compiling the html.js component for the d
我的build.gradle是:
// for facebook account kit
compile 'com.facebook.android:account-kit-sdk:4.+'
// for google firebase database
compile 'com.google.firebase:firebase-database:9.6.0'
// for google firebase cloud messaging
compile 'com.google.firebase:firebase-messaging:9.6.0'
我已经用模块化代码将我的代码从v8转换到了v9版本,但是尽管我已经安装了汇总包,但我还是会遇到这个错误。我的JS代码:
<script type="module">
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
import firebase from 'firebase';
import { in
我们正在将Firestore对象转换为新的
我们通过进口消防站在前端做得很成功。
import { firestore } from 'firebase';
然后用firestore.Timestamp替换所有日期对象类型。
startDate: firestore.Timestamp;
问题是,我似乎找不到访问节点中时间戳的方法。
我尝试过同时记录admin和functions对象,但似乎根本找不到时间戳。
import * as functions from 'firebase-functions';
import * as admin from
我是一个相对新手与Firebase,我第一次使用它,并跟随一个教程。这个教程有点过时了,我一直在修复我一直在做的but,但是这个已经让我陷入了困境。我尝试运行一个不同的函数,当在特定集合中创建文档时触发这些函数。但是,我得到以下错误:
误差
! functions[createNotificationOnlike(us-central1)]: Deployment error.
Function failed on loading user code. Error message: Error: please examine your function logs to see the err
我正试图用Firebase和Facebook编写一个。以下是完整的应用程序代码:
import React from 'react';
import { StyleSheet, View } from 'react-native';
import { LoginManager, AccessToken, LoginButton } from 'react-native-fbsdk';
import * as f from './config/firebase';
export default class App extend