简体   繁体   English

ionic -firebase 电子邮件和密码登录在 android 中不起作用

[英]ionic -firebase email& password login not working in android

It's work OK in web browser but when I try to login via email& password I get the error :它在网络浏览器中工作正常,但是当我尝试通过电子邮件和密码登录时,出现错误:

Unable to contact the Firebase server无法联系 Firebase 服务器

this is how I login :这是我登录的方式:

 var auth = $firebaseAuth(firebaseMainRef);

            auth.$authWithPassword({  email    : email,    password : password  })

I use: Firebase v2.0.5我使用: Firebase v2.0.5

this is the confif.xml file:这是confif.xml文件:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.ionicframework.myapp501948" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
  <name>myApp</name>
  <description>
        An Ionic Framework and Cordova project.
    </description>
  <author email="hi@ionicframework" href="http://ionicframework.com/">
      Ionic Framework Team
    </author>
  <content src="index.html"/>
  <access origin="*"/>
  <preference name="webviewbounce" value="false"/>
  <preference name="UIWebViewBounce" value="false"/>
  <preference name="DisallowOverscroll" value="true"/>
  <preference name="BackupWebStorage" value="none"/>
  <feature name="StatusBar">
    <param name="ios-package" value="CDVStatusBar" onload="true"/>
  </feature>
</widget>

thanks!谢谢!

添加白名单的cordova插件解决问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM