When you regenerate the Hybrid App package, the
hybridapp.js file is regenerated. The conditional start screen method is shown in the
hybridapp.js file similar to this:
function customNavigationEntry() {
this.condition;
this.screen;
}
function customNavigationEntry( a_condition, a_screen ) {
this.condition = a_condition;
this.screen = a_screen;
}
/**
* For the specific pair - screen named 'currentScreenKey' and the action 'actionName', return
* the list of custom navigation condition-names and their destination screens.
*/
function getCustomNavigations( currentScreenKey, actionName ) {
var customNavigations = new Array();
if((currentScreenKey === SERVERINITIATEDFLAG) && (actionName === '')) {
customNavigations[0] = new customNavigationEntry( 'Wilma_first_ss1', 'Screen_Start_One' );
customNavigations[1] = new customNavigationEntry( 'Fred_second_screen', 'Screen_Start_Two' );
return customNavigations;
}
return customNavigations;
}