I've got an app at present which has failed certification due to a page transition error.
The problem is very sensitive to timing, but can be reproduced by:
- Start the app - wait for the home page to show
- Navigate to a child page
- As soon as the navigation starts, then hit the start button
- Then hit the back button - the child page is there
- Then hit the back button - the home page is not there - it's a blank screen
If I then hit the screen lock button, then unlock the phone, then the page appears normally.
There's no data reason that I can see why the home page is not shown, so it feels like this is something to do with the page transitions.
There are setup using:
var navInTransition = new NavigationInTransition
{
Backward = new TurnstileTransition { Mode = TurnstileTransitionMode.BackwardIn },
Forward = new TurnstileTransition { Mode = TurnstileTransitionMode.ForwardIn }
};
var navOutTransition = new NavigationOutTransition
{
Backward = new TurnstileTransition { Mode = TurnstileTransitionMode.BackwardOut },
Forward = new TurnstileTransition { Mode = TurnstileTransitionMode.ForwardOut }
};
TransitionService.SetNavigationInTransition(this, navInTransition);
TransitionService.SetNavigationOutTransition(this, navOutTransition);
If I remove this transition code, then my app never "gets stuck".
Has anyone seen anything like this before? Does anyone have any ideas how I can work out in code if the page transitions are stuck - and if they are how I might then be able to restart them?