Show messages (toast) to the user when a timeout occurs loading a web page and on push process.
:gear: branches
app:
Origin: feature_show_timeout_errors: v1.4_connect
bugshaker-android:
Origin: downgrade_gradle_version
EyeSeeTea-sdk:
Origin: Development
:memo: How is it being implemented?
For web view: the web view has not a timeout listener then I have implemented a manual listener creating a CustomWebClient and manage the timeout (15seg) onPageStarted and onPageFinished events.
For push: currently, a timeout error is treated as NetworkError, simply I have sent via broadcast receiver this event to dashboard a show a network problem in push
:boom: How can it be tested?
Use Case 1: modify a web_view_timeout_millis key in donotranslate to 100 for example. Execute the app and the message 'There are network problems loading the web page' should be shown when a page is loaded.
Use Case 2: modify DEFAULT_TIMEOUT constanteReferralsAPIClient to 100 for example. Execute the app, create a new survey and execute push, the message 'There is network problems on push process' should be shown.
:floppy_disk: Requires DB migration?
[x] Nope, we can just merge this branch.
[ ] Yes, but we need to apply it before merging this branch.
[ ] Yes, it's already applied.
:art: UI changes?
[x] Nope, the UI remains as beautiful as it was before!
:pushpin: References
:tophat: What is the goal?
Show messages (toast) to the user when a timeout occurs loading a web page and on push process.
:gear: branches
app: Origin: feature_show_timeout_errors: v1.4_connect bugshaker-android: Origin: downgrade_gradle_version EyeSeeTea-sdk: Origin: Development
:memo: How is it being implemented?
:boom: How can it be tested?
Use Case 1: modify a web_view_timeout_millis key in donotranslate to 100 for example. Execute the app and the message 'There are network problems loading the web page' should be shown when a page is loaded.
Use Case 2: modify DEFAULT_TIMEOUT constanteReferralsAPIClient to 100 for example. Execute the app, create a new survey and execute push, the message 'There is network problems on push process' should be shown.
:floppy_disk: Requires DB migration?
:art: UI changes?