You should check my previous post about Background REST Service Access with A-Team Mobile Persistence Accelerator (AMPA). There I describe how to optimise MAF performance for REST service calls, allow user to continue working with the mobile application, without locking the screen until Web Service response arrives. Steven Davelaar have documented how it works, you can read it in his blog - Calling Web Services in Background Using MAF 2.1.
I have updated sample application from previous post, to include indicator for AMPA background service call status tracking. Updated sample application - MobileServiceBusApp_v8.zip.
AMPA provides application scope variable, which acts as a flag and indicates when background service call is executed. Based on this flag, we could conditionally display animated GIF image, this will help user to understand if background service call still runs:
When user is searching and request is being processed in background, he will see rotating status indicator in the top right corner:
Until data is being returned from background task, user could go to another screen and monitor when request is completed, to see the latest data:
Once background task completes, indicator disappears:
I have updated sample application from previous post, to include indicator for AMPA background service call status tracking. Updated sample application - MobileServiceBusApp_v8.zip.
AMPA provides application scope variable, which acts as a flag and indicates when background service call is executed. Based on this flag, we could conditionally display animated GIF image, this will help user to understand if background service call still runs:
When user is searching and request is being processed in background, he will see rotating status indicator in the top right corner:
Until data is being returned from background task, user could go to another screen and monitor when request is completed, to see the latest data:
Once background task completes, indicator disappears:
No comments:
Post a Comment