How does automatic refresh work? when the app is in the background, every time the user will open the app, it will refresh.
The broadcaster sets the time between each refresh. This feature comes with an option for anupdate message: while the user is inside the app, a bubble will appear and inform the user that there are new updates, upon which pressing the bubble, the page will refresh.
The automatic refresh is updated automatically once you update the SDK. The refresh rate default is set to 10 minutes. In order to change the rate, please follow the steps below:
- Update the SDK to at least version 3.1.3 for Ios and 3.2.18 for Android
- Change the rate on a Json using the parameter:
"refreshRate"= X (in sec)
Please notice that you can configure a different refresh rate for each screen you decide to add this option to.
In order to configure an update message. please follow the steps below:
- Update the following parameters on the Json
True means to show an update message.
false means to not show an update message.
Once you decide to use the update message, customize it on Zapp.
You have 2 options:
- changing the colors, font and texts.
- changing the entire asset.
For option A:
In order to change the colors and font, go to “style” and look for key names:
In order to change the texts, go to “localization” and look for key: Refresh
For option B:
In order to change the entire bubble to your own asset, go to “Assets” and look for key name:
* Note: Please note that the Text appears visually on top of the asset.
This means that:
a) If you want to be able to control the text remotely, use a solid-color asset, so that the text will appear on top.
b) If you want the text to look special, embed it as part of the button.
But this will mean you will need to leave the text localization empty (space bar), and any change in the text, will require a new build (as this would mean a change in the asset).
Compatibility with UI Builder:
i- The Auto Refresh Mechanism -
The Auto refresh of a screen and its components, is supported using the UI builder, nevertheless it has a constant default time and can Not be configured.
ii- The Auto Refresh Message -
The Refresh message is currently Not supported using the UI Builder, as there is no way to configure the parameter: "showRefreshBubble"=True/false.