Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Alert Explossion in Xamarin Forms.

$
0
0

Hi,

I'm developing an application with Xamarin Forms 2.3.4.247 and Prism 6.3.0.

I'm currently having an issue that I've been unable to solve or to identify what's causing it.

When my application being executed on release mode, after a few hours of usage the screen gets filled with all the Alerts displayed during the session lifetime. It just explodes, showing a bunch of cascading alerts and then the application stops working.

The code I'm using to show alerts varies in these 4 ways:

await _pageDialogService.DisplayAlertAsync(Resources.Localization.Main.Main_Success_Label, successMessage, Resources.Localization.Main.Main_OK_Label);
await _pageDialogService.DisplayAlertAsync(errorTitle, errorMessage, cancelButton);
await _pageDialogService.DisplayActionSheetAsync(title, cancelButton, destroyButton, otherButtons);
await _pageDialogService.DisplayAlertAsync(errorTitle, errorMessage, cancelButton);

I'm using IPageDialogService from Prism.Services.

When I use it these lines of code (separately) in different part of my application the alert displays without problem. But after a while all of them get displayed again.

Does anybody know what could be the cause of this? Or how to solve it?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>