Unable to auth with firebase on ionic

I am using fire base to auth login with google. The error that I see is :

    Ionic Core: injecting cordova.js
firebase.js:175 WebSocket connection to 'wss://xxx.firebaseio.com/.ws?v=5' failed: WebSocket is closed before the connection is established.
ionic.io.bundle.min.js:2 Ionic Core: plugins are ready
.lp?dframe=t&id=4080402&pw=P3bHA5WC38&ns=intense-heat:5 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

the issue that all works goog on chrome but not on device… the permission that I set are:

for login my code:

$scope.login = function () {
var ref = new Firebase(“https://idxxxxx.firebaseio.com”);
ref.authWithOAuthPopup(“google”, function (error, authData) {
if (error) {
} else {