草庐IT

firebase-remote-config

全部标签

android - Firebase 不会将 bool 值绑定(bind)到字段

我正在使用Google的firebase-databaseSDKforAndroid,v9.0.1。我将我的应用连接到Firebase,可以在不同位置读取和写入数据。但是,我无法使用dataSnapshot.getValue(PingReport.class)获取要绑定(bind)的特定bool字段,并且我在日志中不断收到错误消息,提示Nosetter/fieldforisUp在com.myapp.PingReport类上找到当我的模型中明确存在该字段时。这是Firebase数据库中的JSON:{"durationMs":364,"isUp":true,"timestampMillis

android - 使用 Firebase 填充小部件

我的应用程序使用Firebase数据库并且项目在RecyclerView中正确显示,但我也想在Widget中显示它们。由于小部件不是Activity,因此我在使用Firebase和ListView时遇到了各种问题。有什么方法可以从Firebase填充小部件吗? 最佳答案 在onDataSetChanged()中花费超过20秒从Internet/Firebase数据库获取数据将不会在小部件ListView上显示数据。您将不得不使用CountDownLatch。还有一个例子https://github.com/mvescovo/item

查询firebase dataBaseReference的习语是什么?

不是一个Android问题。旨在查询数据库的方法:privatevoiddb()throwsFileNotFoundException,IOException{FileInputStreamserviceAccount=newFileInputStream("serviceAccountKey.json");FirebaseOptionsoptions=newFirebaseOptions.Builder().setCredential(FirebaseCredentials.fromCertificate(serviceAccount)).setDatabaseUrl(stringURL).

javascript - 主线程上的 Firebase 同步 XMLHttpRequest 已弃用

我正在开发phonegap/cordovaionic应用程序。我正在iOS和Android上进行测试。在iOS上一切正常。但是在Android上,当我的一个View加载时我收到以下消息:SynchronousXMLHttpRequestonthemainthreadisdeprecatedbecauseofitsdetrimentaleffectstotheenduser'sexperience.Formorehelp,checkhttp://xhr.spec.whatwg.org/.每次我收到此“警告”时-我的View都不会加载。发往/发自firebase的.lp?dframe=t&

android - 无法通过 AVD、config.ini 或 resize2fs 调整 android 模拟器内部存储的大小

当我长时间使用我的应用程序时,我的存储空间总是用完。我假设这是因为模拟器错误地卸载了旧的apks?即使我更改AVD中的设置,内部存储空间始终停留在541MB。config.ini中的设置已正确设置,我看到disk.dataPartition.size=2000M。我已经尝试删除并重新启动模拟器,创建其他虚拟设备,甚至这里详述了resize2fshttps://stackoverflow.com/a/20762411/2532762似乎没有任何效果。我试过API22和23模拟器。都是x86 最佳答案 这是一个使用SDK管理器增加And

安卓工作室错误 :An existing connection was forcibly closed by the remote host

我已经在Windows中安装了android-studio。但每次重建/运行/项目时都会出现此错误。Anexistingconnectionwasforciblyclosedbytheremotehost下面是我试过的。禁用防火墙adbkill-server&&adbstart-server删除任务栏中的任何adb进程重启工作室,清理并重建非常感谢任何答案。 最佳答案 尝试从控制台运行构建任务,并检查输出是否有问题./gradleassembleDebug 关于安卓工作室错误:Anexi

android - 设置autoWebview : ' true' at protractor config. js文件导致机器注销,ubuntu 16.04

在Protractor配置文件中设置autoWebview:'true'导致系统注销,ubuntu16.4这是我的配置文件:exports.config={seleniumAddress:'http://localhost:4723/wd/hub',specs:['demo.js'],capabilities:{platformName:'android',platformVersion:'4.4.2',deviceName:'PNV4PN4LUORWSCRO',directConnect:true,browserName:"android",autoWebview:'true',ap

android - 如何在 firebase 存储中恢复文件下载?

我需要使用firebase存储下载一个大文件,可能我的用户在下载过程中遇到网络中断,我希望能够恢复此下载任务。FileDownloadTaskdownloadTask=firebaseStorage.getReferenceFromUrl(url).getFile(localFile);downloadTask.addOnProgressListener(newOnProgressListener(){@OverridepublicvoidonProgress(FileDownloadTask.TaskSnapshottaskSnapshot){Log.v(TAG,"progress"

android - 无法在 21 以下的 Api 中获取提供商 com.google.firebase.provider.FirebaseInitProvider

我在API18中遇到问题,它在API21及更高版本中有效。在PreLollipop版本的设备中出现错误,它在API21及更高版本中成功运行应用程序:E/AndroidRuntime:FATALEXCEPTION:mainjava.lang.RuntimeException:Unabletogetprovidercom.google.firebase.provider.FirebaseInitProvider:android.content.res.Resources$NotFoundException:StringresourceID#0x7f070150atandroid.app.A

android - Firebase 通知 LED 闪烁

我正在使用Cordova制作一个移动应用程序,我正在尝试通过google'sFirebase.发送推送通知。我能够设置title、body、badge、sound等,但我不能不知道如何在收到通知时设置LED闪烁。我尝试使用localNotification,但它要求应用始终处于运行状态。你们中有人对如何解决这个问题有任何想法吗? 最佳答案 也许有点晚了,但对其他读者来说:在NotificationCompat.Builder中添加这个.setLights(intargb,intonMs,intoffMs)文档:Settheargbv