是否有针对收入创建的商业应用的FCM使用率列表?或FCM对商业应用程序完全免费吗?
Firebase文档中是否有任何页面,如果超出限制,它会告诉所有使用限制及其价格?
我们希望了解的限制是:
除4 KB邮件大小,最大可折叠密钥以外的任何其他限制.谢谢.
使用Firebase云消息传递(适用于网络),如何生成网页关闭时或后台显示的通知,但是当我实际关注网页时?
我的理解messaging.onMessage(...)是,当页面处于焦点时我处理传入消息的位置,但我似乎无法找到有关如何仍然创建通知弹出窗口的文档,就像页面在后台一样.
谢谢你的时间!
我正在尝试将一个简单的字节数组上传到Firebase存储中,但是我onFailureListener不断被调用并记录回来,说上传失败了.我希望你们能告诉我我的代码有什么问题.
在顶部,我得到了
//Firebase
private Firebase mRef;
private StorageReference storageRef;
Run Code Online (Sandbox Code Playgroud)
然后进去 onStart()
@Override
protected void onStart() {
super.onStart();
googleApiClient.connect();
//Firebase
mRef = new Firebase("link to firebase account");
FirebaseStorage storage = FirebaseStorage.getInstance();
storageRef = storage.getReferenceFromUrl("link to storage");
}
Run Code Online (Sandbox Code Playgroud)
然后在我的 onActivityResult()
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
addImageImageView.setVisibility(View.GONE);
if (requestCode == Constants.REQUEST_CODE && resultCode == RESULT_OK && data != null) {
//First we gotta make sure to add the images to
ArrayList<Image> imagesFromGallery = data.getParcelableArrayListExtra(Constants.INTENT_EXTRA_IMAGES);
for (int …Run Code Online (Sandbox Code Playgroud) android android-image firebase firebase-realtime-database firebase-storage
我总是在使用本教程部署firebase时编译错误:https://firebase.google.com/docs/cloud-messaging/ios/client 我的部署SDK是9.0.
我怎样才能解决这个问题?
无法指定"AppDelegate"类型的值来键入"UNUserNotificationCenterDelegate?"
AppDelegate中的代码:
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// [START register_for_notifications]
if #available(iOS 10.0, *) {
let authOptions : UNAuthorizationOptions = [.alert, .badge, .sound]
UNUserNotificationCenter.current().requestAuthorization(
options: authOptions,
completionHandler: {_,_ in })
// For iOS 10 display notification (sent via APNS)
UNUserNotificationCenter.current().delegate = self
// For iOS 10 data message (sent via …Run Code Online (Sandbox Code Playgroud) 我有自己的node.js服务器设置,所以我不需要Firebase存储和实时数据库服务.从客户端(主要是Android)我尝试使用Firebase身份验证服务(G +和FB登录)验证用户,但是在firebase数据库中创建用户.如何在数据库中创建用户?
目前,我只是将Firebase创建的用户ID发送到我的服务器并将其保存在数据库中并生成一个JWT以验证后续REST API请求到我的服务器.
我java-script fire-base在我的应用程序中工作.
我能够createUserWithEmailAndPassword在app中成功.它也在里面显示数据Fire-base Console.
这是片段.
firebase.auth().createUserWithEmailAndPassword("abc@gmail.com", "*******").catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
console.log("Eroor Msg" + errorMessage);
// ...
});
Run Code Online (Sandbox Code Playgroud)
然后我经历了firebase.auth().signInWithEmailAndPassword.
使用上述方法,我无法获得任何成功事件或消息log.即使它不扔任何东西error.
这是片段.
firebase.auth().signInWithEmailAndPassword("abc@gmail.com", "*****")
.catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
if (errorCode === 'auth/wrong-password') {
alert('Wrong password.');
} else {
alert(errorMessage);
}
console.log(error);
});
Run Code Online (Sandbox Code Playgroud)
我的问题是如何在这种方法中获得成功事件signInWithEmailAndPassword?
任何帮助将不胜感激.
请耐心等待我是谷歌Firebase的新手,对不起我的愚蠢
根据Firebase网站上的JS Auth文档,它仅显示如何获取displayName以及如何更新displayName.所以我试着更新它.但这有点不合逻辑,因为如何在不创建的情况下更新内容.
所以我的问题是,如何在注册期间设置用户的displayName?
function createUser(email, password) {
firebase.auth().createUserWithEmailAndPassword(email, password).catch(function (error) {
error.message.replace(".", "");
alert(error.message + " (" + error.code + ")");
document.getElementById("password").value = "";
});
if (firebase.auth().currentUser != null) {
firebase.auth().currentUser.updateProfile({
displayName: document.getElementById("name").value
}).then(function () {
console.log("Updated");
}, function (error) {
console.log("Error happened");
});
}
}Run Code Online (Sandbox Code Playgroud)
我已经尝试过这个,但事实证明它不起作用......
真诚的,法鲁克
我的应用使用了Firebase.我正在尝试向在模拟器中运行的应用程序发送推送通知.当我在iOS 10 Simulator中运行应用程序时,它成功生成InstanceID令牌但显示警告
模拟器中不支持通知.
我在stackoverflow上的某处读到可以在iOS 10模拟器上发送推送通知.这是真的吗?
我有两个google-services.json用于Google登录的文件,另一个用于Firebase存储,我如何将两个文件放在同一个项目中.请帮我解决这个问题.我已经在我的应用中集成了Google登录,现在我下载了JSON文件进行存储,但无法将其放在同一个项目中.
尝试将图像文件和pdf文件上传到Firebase存储,图像上传工作完美,而pdf文件上传时代码返回非常相似
未捕获错误:此浏览器似乎不支持创建Blob.
NodeJS,ReactJS
请参阅下面的代码
// post resume to firebase
function PostResumeToFirebase(id, resume){
console.log("inside PostResumeToFirebase -------")
resume.resume_files.forEach((data) => {
console.log("file inside post resume", data)
const file = data
var storageRef = firebase.storage().ref()
// Upload file and metadata to the object
const uploadTask = storageRef.child('applicants/resume/' + file.name).put(file);
// Listen to state changes, errors, and completion of the upload.
uploadTask.on(firebase.storage.TaskEvent.STATE_CHANGED,
function(snapshot) {
// Get task progress, inlcuding number of bytes uploaded and the total number of bytes to be uploaded
var progress = …Run Code Online (Sandbox Code Playgroud)