Firebase authWithOAuthPopup returns TRANSPORT_UNAVAILABLE when using PhoneGap Cloud Build

后端 未结 2 938
既然无缘
既然无缘 2021-01-14 21:03

I have had success using the authWithOAuthPopup in my html5 application but when I recently created a phoneGap build, it fails on Android.

I have done the obvious th

相关标签:
2条回答
  • 2021-01-14 22:05

    I solved it by adding this line: <script src="phonegap.js"></script>

    0 讨论(0)
  • 2021-01-14 22:09

    Adding the below link

    <script src="phonegap.js"></script>
    

    Does not work for

    firebase.auth().signInWithPopup(provider).then(function(result) {
    

    even after adding

    <access origin="*.firebaseio.*" />
    <access origin="https://auth.firebase.com" />
    
    0 讨论(0)
提交回复
热议问题