For some reason, when I set the following in javascript:
setTimeout(function(){
Apperyio('mobilepopup_46').popup("close");
Apperyio.navigateTo('patientReport');
}, 1000);
The app will navigate to patientReport page, then bug in quick succession it will navigate to my patientProfileCreate page.
However, if I use:
setTimeout(function(){
Apperyio('mobilepopup_46').popup("close");
}, 1000);
setTimeout(function(){
Apperyio.navigateTo('patientReport');
}, 1400);
it works perfectly fine, i.e. transition to patientReport page without futher transitioning to patientProfileCreate page.
Somehow there is something wrong when calling navigateTo directly after popup('close'), but I can't figured out what it is.