Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit 8170b57

Browse files
committed
feat(app): Provide alternative check for android without ionic
Closes #13
1 parent 5e5ec8b commit 8170b57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ionic-deploy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ angular.module('ionic.service.deploy', ['ionic.service.core'])
259259

260260
return deferred.promise;
261261
}
262-
}
262+
};
263263
}])
264264

265265
.run(['$ionicApp', function($ionicApp) {
@@ -269,11 +269,11 @@ angular.module('ionic.service.deploy', ['ionic.service.core'])
269269
function onDeviceReady() {
270270
console.log("Ionic Deploy: Init");
271271
if (typeof IonicDeploy != "undefined") {
272-
if (ionic.Platform.isAndroid()) {
272+
if (ionic && ionic.Platform.isAndroid() || navigator.userAgent.toLowerCase().indexOf('android') > 0) {
273273
IonicDeploy.init($ionicApp.getApp().app_id);
274274
} else {
275275
IonicDeploy.redirect($ionicApp.getApp().app_id);
276276
}
277277
}
278-
};
278+
}
279279
}]);

0 commit comments

Comments
 (0)