According to
this post,
B4XPage_Appear gets called whenever the page becomes visible. And this was working fine for weeks during development, but somehow does not anymore.
In file B4XMainPage, Sub B4XPage_Created, I have:
...
page2.Initialize
B4XPages.AddPageAndCreate("page 2", page2)
page3.Initialize
B4XPages.AddPageAndCreate("page 3", page3)
...
Then to jump from one page to another, I just do:
B4XPages.ShowPage("page 2")
when necessary.
This recently became intermittent (works some times but not at others)... it will always show the correct screen, but the B4XPage_Appear sub of the new page is not always being called.
This is also happening if I go to the home page, then reselect the app from the recent apps list... it should call B4XPage_Appear, correct?
I tried changing AddPageAndCreate to AddPage, but same thing.
Android 10.
What am I not understanding here?
PS: I can't post all the code, but let me know what important sections I should show.