Page 1 of 2

iphone flickering when going from page to page

Posted: Tue Oct 09, 2012 6:42 pm
by Eric5020946

I noticed some issue when navigating from one page to other on iphone
iphone shows white haltransparent overlay when loading next page, it happens everytime when REST API is attached ot page_show event, I haven't checked other factors yet

any advice how to change color of this overlay or eliminate this effect?

I didn't notice this issue on android however when REST API is attached to the page show event and populates grid, adnroid seems to load base empty grid first and then when REST API is completed, repleces base grid to proper populated grid. This looks weird from user point of view.


iphone flickering when going from page to page

Posted: Tue Oct 09, 2012 8:12 pm
by maxkatz

Interesting as this usually only happens on Android. Try this: http://blog.tiggzi.com/2012/08/elimin...


iphone flickering when going from page to page

Posted: Tue Oct 09, 2012 8:25 pm
by Eric5020946

Max,
It seems to help with overlay, any suggestion how to hide from user populating the grid by rest api response?
This is common for both platforms android and iphone, also this happens in your browser tester but much faster


iphone flickering when going from page to page

Posted: Tue Oct 09, 2012 8:34 pm
by maxkatz

I'm not sure I understand.. what do you want to hide?


iphone flickering when going from page to page

Posted: Tue Oct 09, 2012 8:41 pm
by Eric5020946

I came across weird behavior which doesn;t look good for end user. I have defined a grid, single row and 2 cells (button + label) hooked up to REST API which gets populated based on json response - all works fine.

the problem is how it works... I can see in the app that pages shows with template grid, empty button text, empty labels etc. then - I think rest api completes - this base grid disappears and new grid shows up - it takes 1-2 seconds for all this to happened but I can tell that page loads first with template empty grid and then quickly populates the grid hiding old base grid.

I hope I described this clear enough.
Not sure if the problem is with the event "page show", it seems like page with emprty grid shows before rest api completes and gets repsonse, lookslike response is available, empty grid gets replaced right away.

invoke service is attached to event PAGE SHOW
I use single file structure so I can;t use LOAD event get rest api response before empty grid shows up. Using multiple page structure is much slower


iphone flickering when going from page to page

Posted: Tue Oct 09, 2012 8:49 pm
by maxkatz

The mapping to the grid, do you get a collection of items back or is it a single item?


iphone flickering when going from page to page

Posted: Tue Oct 09, 2012 8:50 pm
by Eric5020946

collection


iphone flickering when going from page to page

Posted: Tue Oct 09, 2012 8:52 pm
by maxkatz

If you map a collection to a grid (or any other iteration component), it shouldn't be visible on the page, only when the service completes and fills the grid. Can you share the app link?


iphone flickering when going from page to page

Posted: Tue Oct 09, 2012 8:56 pm
by Eric5020946

I shared project with you, can't share client project in public at this moment


iphone flickering when going from page to page

Posted: Tue Oct 09, 2012 9:08 pm
by maxkatz

It's shared with support? What's the app name and how to reproduce the problem?