草庐IT

firebase-messaging-sw

全部标签

javascript - Firebase 警告 : Using an unspecified index

对于我在JavaScript查询中使用的每个orderByChild,我都会从Firebase收到这条警告消息:FIREBASEWARNING:Usinganunspecifiedindex.Consideradding".indexOn":""at/tablestoyoursecurityrulesforbetterperformance到目前为止,我的查询运行得相当快,所以我认为没有必要包含indexOn。只是想知道负面影响是什么?此外,我该如何实际禁用警告,因为它们在调试时非常烦人。 最佳答案 如果您处于开发阶段,您将感觉不到

javascript - Uncaught ReferenceError : Firebase is not defined

我正在尝试按照有关在firebase中设计数据库的教程进行操作,但在JavaScript控制台中出现以下错误:UncaughtReferenceError:Firebaseisnotdefined这是教程的链接,我试图在JavaScript控制台中运行的代码片段是:https://www.firebase.com/blog/2014-11-04-firebase-realtime-queries.htmlvarref=newFirebase("https://dinosaur-facts.firebaseio.com/dinosaurs");ref.orderByChild("heig

PHP amqp + rabbitMQ -- 长时间运行的生产者 : can send messages to queues already declared, 但不能声明新队列

我有一个应该一直运行的“生产者”,但似乎在一天左右之后,它仍然能够将消息发送到它之前声明的队列,但是当试图声明一个新队列时,它炸毁:'PhpAmqpLib\Exception\AMQPHeartbeatMissedException'withmessage'Missedserverheartbeat'in/php-amqplib/php-amqplib/PhpAmqpLib/Wire/IO/AbstractIO.php:140我以为心跳只针对消费者(因为没有地方可以检查生产者的心跳)?当我不是“消费者”时,正在检查心跳是不是一个错误?或者是不是当我声明一个队列时我的脚本也变成了一个“消

php - Gettext 和 PHP 5.3.5 xampp - 使用未定义常量 LC_MESSAGES - 假设 'LC_MESSAGES' in

我收到以下错误:Notice:UseofundefinedconstantLC_MESSAGES-assumed'LC_MESSAGES'inC:\ProgramFiles\xampp\htdocs\xampp\phptest\resources\testi18n.phponline19Notice:Undefinedindex:languageinC:\ProgramFiles\xampp\htdocs\xampp\phptest\resources\testi18n.phponline19Deprecated:setlocale()[function.setlocale]:Pass

PHP Mailer 错误 : Message could not be sent. Mailer Error: SMTP connect() failed

这是我的代码:require'phpmailertesting/PHPMailerAutoload.php';$mail=newPHPMailer;//$mail->SMTPDebug=3;//Enableverbosedebugoutput$mail->isSMTP();//SetmailertouseSMTP$mail->Host='send.one.com';//SpecifymainandbackupSMTPservers$mail->SMTPAuth=true;//EnableSMTPauthentication$mail->Username='myemailhidden';

php - error.message 和 error.messageKey 之间的 symfony2 区别

我正在实现一个简单的自定义登录表单。我正在关注两个不同的例子,官方的一个http://symfony.com/doc/current/cookbook/security/form_login_setup.html还有这个https://knpuniversity.com/screencast/symfony2-ep2/logout#play这基本上是相同的,但有一些差异。看一下这两个例子的login.html.twig,其中一个不同点在于第一个报告的错误消息报告{{error.message|trans}}而其他报告divclass="error">{{error.messageKey

php - <b> fatal error </b> : Uncaught exception 'Exception' with message 'Failed to connect to api.twitter.com port 443: Connection timed out'

我正在开发一个Codeigniter项目,在该项目中我使用twitterapi库来获取twitter数据。在我更改服务器之前它工作得很好,但是在更改服务器之后它产生了以下错误。我不知道问题所在。Fatalerror:Uncaughtexception'Exception'withmessage'Failedtoconnecttoapi.twitter.comport443:Connectiontimedout'in/my/project/path/myProject/application/ws/libraries/TwitterAPIExchange.php:297Stacktrac

php - ionic - 使用 PHP 的 firebase 通知不起作用

我想使用firebase将通知推送到我的Ionic2应用程序。我可以直接使用firebase控制台推送通知,但我想通过php文件发送它。当我发送时,我收到PHP的响应:{"message_id":5718309985299480645}而且手机里没有通知。我已将this.fcm.subscribeToTopic('all')放在app.component.ts构造函数中。我不知道我做错了什么..this.fcm.subscribeToTopic('all')是我应用中唯一与fcm相关的代码。我的PHP代码:'FCMPushNotifications');$target='/topics

php - Firebase PHP 数据提交 - arrayValue, mapValue

我正在尝试使用PHP和Googleapi将数据推送到firestore数据库。在我在网络上看到的文档和示例中,我可以在发送数据时使用mapValue和arrayValue。我使用的例子如下:-["orderName"=>["stringValue"=>"GbeilaAliuWahab"],"orderLocationName"=>["stringValue"=>"AccraMallLimited"],"orderTotalAmount"=>["doubleValue"=>150.5],"orderDescription"=>["stringValue"=>"LoremIpsumissi

php - Facebook API : What is the Max length of 'message' on wall?

我已经搜索了Facebook文档,但找不到可以传递给FacebookAPI的最大长度?如果我使用AJAX和PHPSDK向API传递一个大值,我既不会收到错误消息,也不会收到成功消息。(墙上没有留言)。我想限制用户使用正确的长度以避免任何问题。感谢您的帮助,卢克 最佳答案 如果消息是状态更新(也就是说,您不包括附件或操作链接),它最多可以包含420个字符。否则,如果帖子包含附件或操作链接,则消息最多可包含10,000个字符。 关于php-FacebookAPI:WhatistheMaxle