View Issue Details

IDProjectCategoryView StatusLast Update
0008850Talerwallet (WebExtension)public2024-05-28 19:44
ReporterFlorian Dold Assigned Tosebasjm  
Status resolvedResolutionwon't fix 
Target Version0.12 
Summary0008850: webext should call hintNetworkAvailability
DescriptionThe new wallet-core request

  hintNetworkAvailability({isNetworkAvailable: boolean})

should be used to tell wallet-core about network availability.

In case the network becomes available again, all pending tasks are retried immediately.
In the future, when the network becomes unavailable, wallet-core might stop emitting certain errors or not retry certain network requests.
TagsNo tags attached.



2024-05-28 19:32

developer   ~0022486

webex is listening two types of evenets
    window.addEventListener("offline", notifyOffline);
    window.addEventListener("online", notifyOnline);

      navigator.connection.addEventListener("change", notifyChange);

None seems reliable. Works when changing the value in the devTool but does not respond to system changes. has also wrong values

It may work better in other OS but I think we can't relay on this feature.


2024-05-28 19:44

developer   ~0022487

IMHO wallet-core should report the network error with a TalerErrorCode so the UI can decide: if this is a network error and (in case that UI can check network status) we are offline, the do not show the error msg.
In browser it seems that we can't do it reliable on all platform.
Tested on Ubuntu 23.04 firefox 123.0.1 chrome 122.0.6261.111

Issue History

Date Modified Username Field Change
2024-05-16 00:34 Florian Dold New Issue
2024-05-16 00:34 Florian Dold Status new => assigned
2024-05-16 00:34 Florian Dold Assigned To => sebasjm
2024-05-16 00:34 Florian Dold Issue generated from: 0008849
2024-05-16 00:34 Florian Dold Issue cloned: 0008851
2024-05-27 19:02 sebasjm Category wallet (Android App) => wallet (WebExtension)
2024-05-28 19:32 sebasjm Note Added: 0022486
2024-05-28 19:33 sebasjm Status assigned => confirmed
2024-05-28 19:44 sebasjm Status confirmed => resolved
2024-05-28 19:44 sebasjm Resolution open => won't fix
2024-05-28 19:44 sebasjm Note Added: 0022487