My code:
private async Task ExecuteSubmissionCommand()
{
bool isImagesUploaded = UploadCapturedImages(dataAccess, AssessmentPageViewModel.maximumQueueId);
if (!isImagesUploaded)
{
isSubmissionRetry = await Application.Current?.MainPage?.DisplayAlert("Error", "Problom while uploading captured images. Do you want to retry?", "Retry", "Cancel");
if(isSubmissionRetry)
{
await ExecuteSubmissionCommand();
}
}
}
When image upload process fails due to some network connection, then I will be showing alert to the user for "Retry" option.
If user clicks retry, then I should call the same method again to upload the failed images.
Any idea guys...?
Very urgent..
Thank you so much for your hearty reply in advance.