Cordova_not_available - ionic cordova add platform browser?

My project needs an authentification feature so I implemented AngularFire2 to handle login with Facebook and Google login. I have read about the issue with ‘main.js:1 cordova_not_available’. It needs to be run on a simulator or a device.

I found a solution with ionic cordova add platform browser.

it works just fine, although it does not seem to work when the app is deployed. I am using firebase hosting

Any Ideas?

Found any solutions?