Dandy Ling Kwong
Posts: 0
Joined: Sat Jan 10, 2015 9:06 am

The bug of page transitioning when popup close and navigateTo are used together

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.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

The bug of page transitioning when popup close and navigateTo are used together

Hello Dandy,

Could you please clarify on what event do you call this code?

Dandy Ling Kwong
Posts: 0
Joined: Sat Jan 10, 2015 9:06 am

The bug of page transitioning when popup close and navigateTo are used together

I called it on the success callback function of a service

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

The bug of page transitioning when popup close and navigateTo are used together

Dandy,

We'll investigate this issue, meanwhile I'm glad that you get it working.

Return to “Issues”