Titanium SDK 3.4.2 Alloy 1.5.1 iOS: SDK 8.1, iPhone 6 simulator Android: Samsung Galaxy S3 - 4.1.1 - API 16 - 720x1280
I am trying to add a login view controller to a tabgroup if a user is not logged in. When I launch in the iphone simulator, the login view displays immediately as it should. When I launch the android emulator, the login view does not display, but instead shows the first tab of the tabgroup. Is there something android specific that I'm not including here?
index.js
if (authToken === null || authToken === "") { var loginController = Alloy.createController("login"); $.tabGroup.add(loginController.getView()); $.tabGroup.open(); } else { $.tabGroup.open(); }login.xml
<Alloy> <View class="container"> <View id='loginView'> <Label id='loginText'></Label> <View id="lvContainer" > <TextField id="email" class='tfWrapper' /> <TextField id="password" class='tfWrapper' /> <View class="centerHelper"> <Button id="doLoginBtn" title="Login" /> <Button id="forgotPasswordBtn" title="Forgot Password" /> </View> </View> </View> </View> </Alloy>Thanks so much!