Can't show message while downloading a program on iOS

While loading my application, I load settings and other things and want to be able to show a message to the user. However, this does not work on my iOS Targeted Delphi XE6 FireMonkey Application (iOSSimulator).

When I call ShowMessage or MessageDlg while the program is loading, it blocks and nothing is displayed. It probably enters a modal state, but since no message is displayed it cannot be continued. Even in basic FormActivate, calling ShowMessage shows nothing.

How can I show a message when loading an app?

+3


source to share


2 answers


I'm surprised that no one has posted about this before and that none of the Firemonkey users have answered my question. The fact that you are allowed to call Showmessage while the program is loading, but the application blocks if you do, is inappropriate for the behavior. In a desktop application, it is quite normal to show a message while loading a program if something fails.
I am converting a 500k line project from VCL to FMX and since I cannot show the message on iOS I will have to restructure the build and load code.

The solution I'm planning to implement is to make fail-safe solutions that will allow the app to load no matter what happens, and then when the app is running, I can show which messages came up at load time (the ones the user should consider).



If anyone has any further information or suggestions for a better solution please comment.

0


source


You can use the loading symbol along with the message. This will serve your purpose. You can use "MBProgressHud", you don't need to put in any extra effort, just pass a parameter and display the loaded image along with the text. Enjoy!



+1


source







All Articles