Ionic + Firebase not work android

In android

“Module ‘firebase’ is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument”

Ionic serve it works without problem

P.S: withelist is istalled

A little code might help here?


<!-- cordova script (this will be a 404 during development) -->
<script src="lib/ngCordova/dist/ng-cordova.js"></script>
<script src="cordova.js"></script>

<!-- Firebase -->
<script src=""></script>

<!-- AngularFire -->
<script src=""></script>`

angular.module('db', ['firebase'])

ionic info

Cordova CLI: 6.0.0
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
OS: Windows 8.1
Node Version: v4.3.2

Cordova plugin list

cordova-plugin-device 1.1.1 "Device"
cordova-plugin-whitelist 1.2.1 “Whitelist”


have you tried to include the firebase.js instead of using the https cdn? it could be that https is bounced. Its an easy way to test, and without any more code its hard to see.

this works, but in android return error message “Unable to contact the Firebase server”


<script src="lib/firebase/angularfire.min.js"></script>`


`angular.module(‘db’, [‘firebase’])

.factory(“database”, function($firebaseArray,$localstorage,$q) {
var uri = ‘’;
return {
getRef: function(){
var ref = new Firebase(uri);
return ref;
getRefById: function(tabela,id) {
var data = new Firebase(uri+tabela+"/"+id);
return data;

P.S: ionic serve works

Did you also include:

allow-intent href="*" />
allow-intent href=“” />

in the config.xml?

otherwise try with http instead of https.

and otherwise try to debug with chrome (

Reinstall plugin whitelist is work;
thank to help