Skip to content

Commit

Permalink
Alert submissionID (#1785)
Browse files Browse the repository at this point in the history
* WFNEWS-1631 Check initial response is successful

* WFNEWS-1631 prevent error being thrown on response.json()

* WFNEWS-1631 prevent error being thrown on response.json()

* WFNEWS-1631 try with HttpClient

* Test setInterval without backgroundtask

* Test setInterval every minute

* WFNEWS-1631 Use rxjs interval

* WFNEWS-1631 Unsubscribe after rof submission

* WFNEWS-1631 Unsubscribe after rof submission

* Try with timer

* Increase to 5 mins

* Increase to 5 mins

* Clear storage

* WFNEWS-1631 Move ionic storage to service to prevent multiple instances

* WFEWS-1631 Use fetch

* WFNEWS Use LocalStorage over ionic storage

* Prevent mulitple intervals/storages

* Prevent mulitple intervals/storages

* Comment out ionViewDidEnter

* Unsubscribe from interval at point of submission

* Put syncDataWithServer function in rofService

* WFNEWS-1631 Prevent duplicates being sent to cache in notifications api

* WFNEWS updates after code review

* WFNEWS-1631_patch use idempotent submissionID

* Remove console log

* WFNEWS-1631 Remove unsubscribe on destroy

* WFNEWS-1631 Store submissionID and reject if duplicate

* WFNEWS-1631 Store list of submissionIDs

* WFNEWS consistent UUID for seed string

* Alert submissionID
  • Loading branch information
ssylver93 authored Apr 16, 2024
1 parent 3a556ac commit 24c73a7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ try {
this.storageService.removeData('offlineReportData');
// store submissionID for duplicate check
if(submissionID) {
alert("submissionID: " + submissionID)
submissionIdList = submissionIdList ? submissionIdList + ", " + submissionID : submissionID;
this.storageService.saveData('submissionIDList', submissionIdList)
}
Expand Down

0 comments on commit 24c73a7

Please sign in to comment.