Thank you. As initially reported, I have resolved the runtime error issue caused by having in iOS instructions behind the Open Another Screen event. The remaining issue is the slowness experienced on iOS when executing the Open Another Screen block.
And again, It is not an event.
I do not see any problem to put the block before the "open another screen" block neither with iOS nor with Android..
As I mentioned before, I think it is a race condition, possibly with the garbage collector given that @Ferran_SIMON reports slowness when switching screens. If there is a lot of stuff in memory, I could imagine a scenario where the garbage collector runs as it is creating the second screen, but erroneously collects the procedures or other pending events from the existing screen because of some inconsistent state during the transition. This will be tricky to debug since it likely only happens in apps with a lot of content.
Correction: after the "open another screen" block
No issue with Button1, but with Button2 I get this error:
and no vibration sound.
The same with this:
No issue with Button3, but...
So, as I already said: You must not execute any further commands after the "open another screen" block on iOS. And I see absolutely no reason to do so, whether on iOS or Android.
Should be in the FAQs. @ABG
(added to FAQ)
Was the error in companion, compiled app, or both? There is quite a bit of logic in the compiled version to deal with things like the TribbleHunter method, which was not really how the open/close screen blocks were intended to be used, and this smells like that albeit without the close screen bit so there may be some code path that's not particularly well exercised here.
No error with these blocks:
but no vibration sound with Button2.
I always close Screen1 on iOS because switching screens is faster this way.
I believe this approach is not suitable if Screen1 has many components, since returning from Screen2 and reopening Screen1 again is also slow, and it does not allow returning from Screen2 to Screen1 at the point where the initial call from Screen1 to Screen2 was made (it always returns to the beginning). It would be correct if you never want to return to Screen1.
I've included a diagram of how I use the multi-screen navigation process, indicating the blocks used. This way, I can navigate between any screen and from any point within each screen.
This process runs well for Android and iOS.
On android seems looping between screen1 and screen2
screens.aia (4.3 KB)
And the most important is that you can return to Screen1 at the same point when you were when you has called Screen2 (or any other screen). This is only a sample diagram to demonstrate how can you use these blocks to can navigate completely free between several screens in all directions advancing and retreating as you need (off course, you must adapt the blocks at your necesities). And all runs well in Android and iOS. ONLY, keep attention, NOT PUT any block AFTER Open Another Screen block in iOS.
I explained it in detail here: Switch screens correctly - 2 methods
I have tried to improve the complete navigation scheme so that the circuits used are clearer (the method used is that Screen1 is always kept open and in each case ONLY the Screen is open).
It would be correct if you never want to return to Screen1 at the same point when you called the Screen2 (and not at the start point of Screen1).
Which "point" are you talking about? (Of course, my apps also return to Screen1.)
As I mentioned earlier, switching screens is significantly faster if I close Screen1 when opening other screens.
Here is a small test app that demonstrates this. Clicking the button executes your method; long-clicking the button executes mine. Please do not switch between them while testing; test the two methods one after the other. The test should be performed with the IPA.
screens3.aia (6.2 KB)








