firebase auth cordova-ios停止工作

时间:2017-10-19 09:21:33

标签: javascript ios cordova firebase-authentication google-plus

我有一个使用 Cordova Firebase 的跨平台应用。

不幸的是,iOS设备上的Auth停止了工作。 Android运行良好,但iOS没有。

此外,以前工作的TestFlight上的旧版本已停止登录用户。我使用SingInWithRedirect。我可以从Gmail帐户输入电子邮件和密码,但之后我不会被重定向回应用程序并且不会收到任何对象,错误也不会显示。

我甚至创建了一个带有auth的普通应用程序,就像在文档中一样,但它无论如何都不起作用。

这是我的组件:

start: function() {

    console.log('starts');

    var provider = new firebase.auth.GoogleAuthProvider();

    firebase.auth().signInWithRedirect(provider).then(function() {
      return firebase.auth().getRedirectResult();
        }).then(function(result) {
            console.log('result', result);
          // This gives you a Google Access Token.
          // You can use it to access the Google API.
          var token = result.credential.accessToken;
          // The signed-in user info.
          var user = result.user;
          // ...
        }).catch(function(error) {
            console.log('error', error);
          // Handle Errors here.
          var errorCode = error.code;
          var errorMessage = error.message;
    });
}

这是我的config.xml

<widget id="com.gigover.app" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>HelloCordova</name>
<description>
    A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
    Apache Cordova Team
</author>
<universal-links>
    <host name="d3988.app.goo.gl" scheme="https" />
    <host name="gigover2.firebaseapp.com" scheme="https">
        <path url="/__/auth/callback"/>
    </host>
</universal-links>
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
    <allow-intent href="market:*" />
</platform>
<platform name="ios">
    <allow-intent href="itms:*" />
    <allow-intent href="itms-apps:*" />
</platform>
<preference name="AndroidLaunchMode" value="singleTask" />
<plugin name="cordova-plugin-buildinfo" spec="~2.0.1" />
<plugin name="cordova-universal-links-plugin" spec="~1.2.1" />
<plugin name="cordova-plugin-browsertab" spec="~0.2.0" />
<plugin name="cordova-plugin-inappbrowser" spec="~1.7.1" />
<plugin name="cordova-plugin-customurlscheme" spec="~4.3.0">
    <variable name="URL_SCHEME" value="com.gigover.app" />
</plugin>

0 个答案:

没有答案