Just curious if anyone else notices a lag in panel transitions within an app running in PhoneGap when running on Android (feedback for iOS as well but as far as I can tell I've never seen any lag here).
Specifically I have lists that sit in their own panels within a panel navigator that as a button tab at the bottom to move between the home screen of the app and each list in a panel. When a button in the button tab is tapped I put a wait gif on the screen and then transition to that panel using the simple Javascript code below as well as run a refresh on the list.
About half way through the transition the screen pauses for about .5 second to a second (on Google Pixel 2 running the most updated version of Stock Android, however for other devices it is usually longer especially older devices or devices that don't run stock android).
Do others experience this lag as well and if so have you found a way to combat it? I get complaints that my app doesn't work (due to this lag and the lag occurred when trying to tap buttons or when trying to type into fields) and just wondering what others experiences are with this and if there is something I can do.
I do want to add in a couple caveats as I know they may be playing a role (though they don't seem to be affecting iOS devices).
1) The main component of this mobile app is fairly robust in the fact that it has 5 list controls with detail views as well as another 9 lists that either open up their own UX or are just for information (ie some cached lists of things like truck numbers, trailer numbers, etc that can be refreshed if they need to check for new data but these are selection lists for them to use and add records to when need be). The overall size of the main component is 12.7 MB which in mobile app standards isn't massive but based on the size of most other components in my project is about 6 times as large as the next largest.
2) I am using PhoneGap build cli-7.0.1 as I have run into issues uploading to phone gap, iTunes connect, or with functionality of my app when trying to use cli-7.1.0 or cli-8.0.0, so if you are using these and aren't seeing the lag would be good to know (though I have tested both versions even when app functionally was broken and the transition delay was still there).
My main thing here is that I have tested this app running iOS 9 on an iPhone 5 and the lag doesn't exist which leads me to believe this has something to do with how Android handles phone gap apps (whether that be the way they handle the web view or if it has to do with the javascript code that calling the wait message and then transitioning).
Specifically I have lists that sit in their own panels within a panel navigator that as a button tab at the bottom to move between the home screen of the app and each list in a panel. When a button in the button tab is tapped I put a wait gif on the screen and then transition to that panel using the simple Javascript code below as well as run a refresh on the list.
Code:
{dialog.object}.panelSetActive('PANEL_NAME',true);
Do others experience this lag as well and if so have you found a way to combat it? I get complaints that my app doesn't work (due to this lag and the lag occurred when trying to tap buttons or when trying to type into fields) and just wondering what others experiences are with this and if there is something I can do.
I do want to add in a couple caveats as I know they may be playing a role (though they don't seem to be affecting iOS devices).
1) The main component of this mobile app is fairly robust in the fact that it has 5 list controls with detail views as well as another 9 lists that either open up their own UX or are just for information (ie some cached lists of things like truck numbers, trailer numbers, etc that can be refreshed if they need to check for new data but these are selection lists for them to use and add records to when need be). The overall size of the main component is 12.7 MB which in mobile app standards isn't massive but based on the size of most other components in my project is about 6 times as large as the next largest.
2) I am using PhoneGap build cli-7.0.1 as I have run into issues uploading to phone gap, iTunes connect, or with functionality of my app when trying to use cli-7.1.0 or cli-8.0.0, so if you are using these and aren't seeing the lag would be good to know (though I have tested both versions even when app functionally was broken and the transition delay was still there).
My main thing here is that I have tested this app running iOS 9 on an iPhone 5 and the lag doesn't exist which leads me to believe this has something to do with how Android handles phone gap apps (whether that be the way they handle the web view or if it has to do with the javascript code that calling the wait message and then transitioning).
Comment