I'm converting an Android app to iOS. One irritating stumbling block is a difference in how B4i/iOS handles Wait For. Here's how I wait for completion of a file download from Firebase storage:
In the case of B4A/Android, the Wait For acts as expected, interrupting program flow until storage_DownloadCompleted triggers. In B4i however, the Wait For is totally ignored with no wait. There must be a simple explanation here - can someone weigh in?
'... DownloadFromFirebase(filepath) Wait For storage_DownloadCompleted (ServerPath As String, Success As Boolean) '... Sub DownloadFromFirebase(filepath) '... storage.DownloadFile(filepath,destdir,destname) '... End Sub