FirebaseSimpleLogin: An unknown error occured. Only on android phone

I have a mobile app built using ionic framework. It uses firebase + angularjs api extensively. I am using the api for facebook authentication. I have all the setup on Forge. Infact, the whole login process works well when I run the app on my browser(chrome). However when I install it on my phone, the authentication fails throwing the error mentioned in the subject. I tinkered with the whitelist in Forge as well to no avail. Any idea whats going on?

The API call throwing the error is $scope.loginObj.$login('facebook')