草庐IT

cordova-plugin-firebase

全部标签

android - 如何为 firebase 存储中的文件生成公共(public) url?

有什么方法可以从firebase存储中为pdf文件生成一个公共(public)url。它现在给我的网址是this但我们可以看到它包含一个token,这意味着涉及一些session/身份验证。 最佳答案 token不是身份验证token,也不是用于任何session管理,它只是用于混淆。所有这些URL都是公开的,可以通过控制台撤销和生成新token。 关于android-如何为firebase存储中的文件生成公共(public)url?,我们在StackOverflow上找到一个类似的问题

android - "GoogleApiClient is not connected yet"在使用 Firebase 身份验证和谷歌登录时注销

我将Firebase身份验证与Google登录一起使用,但我想从另一个Activity中注销,但是当我使用此方法注销时,该方法在同一Activity中可以完美运行,但不能与另一个Activity一起使用。这是方法。publicvoidlogOut(){mAuth.signOut();//GooglesignoutAuth.GoogleSignInApi.signOut(googleApiClient).setResultCallback(newResultCallback(){@OverridepublicvoidonResult(@NonNullStatusstatus){autho

android - Cordova 4.3.0 错误 : Please install Android target: "android-21"

我有一个使用ripple模拟器运行良好的项目,但是当我尝试在物理Android设备上启动它时,出现以下错误:Error:PleaseinstallAndroidtarget:"android-21".Hint:OpentheSDKmanagerbyrunning:C:\Program\Files\(x86)\Android\android-sdk\tools\android.BATYouwillrequire:"SDKPlatform"forandroid-21"AndroidSDKPlatform-tools(latest)"AndroidSDKBuild-tools"(latest

android - 如何检查 Firebase 数据类 Android 中是否已经存在一个值

我想检查Firebase的数据库中是否已经存在公交车号码。这是我的示例代码。我过去几天一直在搜索,但找不到合适的代码。ref=newFirebase(Config.FIREBASE_URL);postRef=ref.child("BusNumber");busNum=edtBus.getText().toString().trim();route1=route.trim();seat=edtSeat.getText().toString().trim();if(!busNum.isEmpty()&&!route1.isEmpty()&&!seat.isEmpty()){postRef.

Android Firebase 电话身份验证 INVALID_APP_CREDENTIAL :App validation failed

我是androidfirebase的新手,我已经为FirebaseAuth实现了必要的库。我尝试输入一个有效数字,但日志显示:W/JEJE:onVerificationFailedcom.google.firebase.FirebaseException:Aninternalerrorhasoccurred.[INVALID_APP_CREDENTIAL:Appvalidationfailed]atcom.google.android.gms.internal.nf.zzK(UnknownSource)atcom.google.android.gms.internal.og.zza(U

android - Cordova 3.4 - 检测键盘事件

由于Cordova3.4.0和JQueryMobile1.4.2,我正在尝试检测正在运行的应用程序中的showkeyboard和hidekeyboard事件。在配置文件中,fullscreen属性设置为true(我需要)。事实是,在LogCat中,我无法阅读(显然是由于全屏模式):SoftKeyboardDetect:Ignorethisevent是否有任何解决方案来检测这两个事件?我通过检测输入字段上的模糊和聚焦事件尝试了另一种方法。它可以工作,但是当通过后退按钮关闭键盘时,不会调用这些事件。因此,我尝试检测后退按钮事件,但它不起作用(http://simonmacdonald.bl

android - Android 的 FireBase 卡在 "Run your app to verify installation"

我是android开发的新手,很长一段时间以来,我一直陷入一个错误,即运行您的应用程序以验证安装(检查应用程序是否已与我们的服务器通信。您可能需要卸载并重新安装您的应用程序)build.gradle(Module:app)dependencies{implementationfileTree(dir:'libs',include:['*.jar'])implementation'com.android.support:appcompat-v7:26.1.0'implementation'com.android.support.constraint:constraint-layout:1

android - 如何在 firebase android 中添加新数据

这是我在firebase实时数据库中添加新人的逻辑。但不是创建新条目,它只是用新数据更新旧数据。buttonSave.setOnClickListener(newView.OnClickListener(){publicvoidonClick(Viewv){/*newFirebase(Config.FIREBASE_URL).push().child("title").setValue(text.getText().toString());*/Firebaseref=newFirebase(Config.FIREBASE_URL);Stringname=editTextName.get

如何在iOS共享菜单中显示我的Cordova应用程序?

我们有一个现有的CordovaiOS应用程序,我们需要一个iOS共享扩展名,它将允许用户与我们的应用程序共享其他应用程序(例如照片,页面,数字,主题演讲等)(即从页面导出文件到我们的应用程序的导出文件))。我们需要以下交付:原型/样品iOSCordova应用程序使用用于JPG,PNG,视频,PDF和Office(XLS,XLSX,DOC,DOC,DOCX,PPT,PPTX)文件的共享扩展设置扩展要么直接打开Cordova应用程序,要么将Cordova应用程序作为ShareWidget内部的WebView打开Cordova应用程序必须从扩展程序中接收有关共享文件(文件名,路径,类型,文件化)的参

查询Android中的firebase数据

我想查询Firebase的数据。但是我遇到了一些问题。这是我的燃料数据单击我显示图片FirebasemyFirebaseRef=newFirebase("http//.....");QueryqueryRef=myFirebaseRef.child("0912345678").orderByChild("coffeeNo").equalTo("002");queryRef.addListenerForSingleValueEvent(newValueEventListener(){@OverridepublicvoidonDataChange(DataSnapshotsnapshot){//d