One difference between emulate and run is that when run on android device 2.3 the alert message is also not appearing and the “undefined” message also does not appear. It just hangs.
I have downloaded one of the starter apps and that executes fine. What am I missing here? One difference I see in build is the following appears on the bad app
-package-resources:
[aapt] Found Deleted Target File
[aapt] Creating full resource package…
[aapt] (skipping dir ‘.ionic’ due to ANDROID_AAPT_IGNORE pattern ‘.*’)
which I had to comment out. No big deal, relocated that code.
Next, I have an angular factory which uses $q somewhere. The mere inclusion of this in a function, even if the function is not used causes same issue.
function f($q, … ) { …$q.all(…)… }
angular.module(‘common.services.resolver’, [])
//.factory(‘f’, f)
//using later in the main app as
angular.module(‘myapp’, [‘ionic’, … ‘common.services.resolver’, …])…
this brings back the issue. I have to comment out the definition of f() to make it work.
Very confounding. Will appreciate help in working this out. Works fine when using ionic serve.