App crashes on Android phone


#1

Hello

I’ve deployed this http://codepen.io/ziaxdk/pen/Bsnvf/ thru Phonegap build (It’s a small part of a login flow), and it crashes and exits the app. I’ve narrowed it down to the state.go in the LoginCtrl. It’s because the view isn’t ready. If I wrap it in a $timeout with 2 secs. delay, it works. Is there an event to listen for, when switching between states?

It works in ripple emulator.

I’ve done this with a regular angularJs app months ago, with no crashes.

Android is 4.03

Ken


#2

It seems to be the same problem reported here: http://forum.ionicframework.com/t/getting-message-unfortunately-app-has-stopped-on-android-4-4-kitkat-not-related-to-ionic/2942. I’m having this issue too.