Ionic Weather Android not fully working

Hey everyone. I was experimenting with Ionic Weather demo app and I’m encountering some issues.

1 Running on a local web server:

The app throws an exception like this: ReferenceError: StatusBar is not defined
Eventually it updates and runs fine after that

2 Running on android emulator or android device (Nexus 4)

The app bootstraps but it does not fetch any data. Not sure if this behavior is related to the first one.

I’ll keep trying since I’m more interested in seeing how the app was done, but just wanted to share.

P.S.: Ionic looks really promising :wink:

I was debugging this a little further and it is indeed caused by the StatusBar.

12-11 14:04:33.573: E/Web Console(2064): ReferenceError: StatusBar is not defined
12-11 14:04:33.573: E/Web Console(2064): at file:///android_asset/www/js/app.js:18:5
12-11 14:04:33.573: E/Web Console(2064): at readyWait (file:///android_asset/www/js/ionic-angular.js:351:15)
12-11 14:04:33.573: E/Web Console(2064): at file:///android_asset/www/js/angular/angular.js:13392:28
12-11 14:04:33.573: E/Web Console(2064): at completeOutstandingRequest (file:///android_asset/www/js/angular/angular.js:4032:10)
12-11 14:04:33.573: E/Web Console(2064): at file:///android_asset/www/js/angular/angular.js:4338:7 at file:///android_asset/www/js/angular/angular.js:9199
12-11 14:04:33.673: D/(2064): HostConnection::get() New Host Connection established 0xb8b980d0, tid 2092
12-11 14:04:34.823: D/CordovaActivity(2064): onMessage(spinner,stop)
12-11 14:05:15.714: E/GLUtils(2064): GL ERROR - after At the end of blitTileFromQueue()() glError (0x502)
12-11 14:05:15.714: E/TransferQueue(2064): blitTileFromQueue ERROR: fboId 1, destTexId 10, srcTexId 3, textureWidth 256, textureHeight 256

Get @JoaoP, did you install the statusbar plugin?

$ cordova plugin add org.apache.cordova.statusbar
$ cordova build android

To be honest, I’m not really sure what that plugin does on Android… :smile:

As for the location stuff, you might have to set the location in the emulator. I know on iOS you have to set it explicitly since it doesn’t have any data to go off of.

I’m also trying to make it work on android.
So far I found that org.apache.cordova.statusbar does nothing on android and
StatusBar should me commented out from onReady event?
Missing is also org.apache.cordova.geolocation?
Switch button in settings keep switching back.
But looks very responsive. Great work!

Yea, I’m still trying to narrow down that switch issue. It’s on my list for this afternoon.