Ionic firebase login does not work

I have a ionic app, using firebase with facebook login
The app works perfectly when running ionic serve
But when running ionic build browser and then deploying to firebase.(platforms\browser\www) and running it in the web and mobile browser i get the following.

console-via-logger.js:173 adding proxy for Device
2015-11-19 23:03:56.918 console-via-logger.js:173 adding proxy for SplashScreen
2015-11-19 23:03:56.921 console-via-logger.js:173 adding proxy for InAppBrowser
2015-11-19 23:03:56.928 SplashScreenProxy.js:76 Uncaught TypeError: Cannot read property ‘appendChild’ of nullSplashScreen.show @ SplashScreenProxy.js:76showAndHide @ SplashScreenProxy.js:115(anonymous function) @ SplashScreenProxy.js:129xhrStatusChangeHandler @ cordova.js:855
2015-11-19 23:03:56.931 …firebaseapp.com/:29 GET …firebaseapp.com/screen 404 (Not Found)

Parts of the code:

config.xml

<content src="index.html"/>
  <access origin="*"/>
  <allow-navigation href="*"/>
  <allow-intent href="*"/>

index.html

`<meta http-equiv="Content-Security-Policy" content="default-src *; style-src * 'unsafe-inline'; script-src * 'unsafe-inline'">`

js:

	Auth.$authWithOAuthRedirect("facebook").then(function(authData) {
	  console.log('logged in with redirect');
	  $scope.isAuth = true;
  // User successfully logged in
}).catch(function(error) {
  if (error.code === "TRANSPORT_UNAVAILABLE") {
	Auth.$authWithOAuthPopup("facebook").then(function(authData) {
	  // User successfully logged in. We can log to the console
	  // since we’re using a popup here
	  console.log('logged in with popup');
	  $scope.isAuth = true;
	});
  } else {
	// Another error occurred
	console.log('error');
  }
});