Complete
over 5 years ago

Responded

CIQ3.1 can't immediately skip to different view than one defined in getInitialView()

My app in some cases decides immediately after load to open different view (#2) than the one defined in getInitialView() function (#1) . Either via switchToView or pushView.  This worked properly on CIQ version prior to 3.1 . 

Behaviour on CIQ 3.1 is random. Sometimes view #2 is opened sometimes it stays on #1. I find out, that it is because of not finished init of view #1. When the app will stay on #1, I can see, that #2 view was initialised but its onLayout function was not called. 

This was tested with F6-Pro 4.20 . I don't have confirmed whether the issue is on all devices using CIQ3.1 .

Parents
  • Former Member
    Former Member over 5 years ago

    We wouldn't recommend doing view operations inside of code called from getInitialView() or getGlanceView(). We recommend doing View operations from onShow() instead.

Comment
  • Former Member
    Former Member over 5 years ago

    We wouldn't recommend doing view operations inside of code called from getInitialView() or getGlanceView(). We recommend doing View operations from onShow() instead.

Children
  • Actually I am calling it directly from main app class which also defines getInitialView() function. But I get your point, thanks for reply. :)  Strange that the same code works without issues on CIQ 3.0 devices. Some logic had to be changed in this. Solved it via delayed call to allow app to properly initialize view from getInitialView() first..