iOS Question Webview loose content after a while?

ilan

Expert
Licensed User
Longtime User
hi

i encounter a weird behavior with my app lately.
i am using webview and load to it. after the app is in background for some time (maybe few hours) when i return the webview is blank.

could i be related to this issue?

because the app was in background it is reloaded when i return to the app and i need to reload the webview with is original content again when returning to the app?
 

ilan

Expert
Licensed User
Longtime User
The process was killed. The app was restarted.
so when this happens Erel will B4XPage_Created not be called again when i return to the app?
is there a way to know if the app was killed when it was in background so i can reload the webview content ?

thank you

EDIT: is there maybe a thread about b4xpages life cycle? (ios + android) to understand what happens when the app was killed and what event will be raised when i return to the app. thank
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
so when this happens Erel will B4XPage_Created not be called again when i return to the app?
It will be called.

is there a way to know if the app was killed when it was in background so i can reload the webview content ?
B4XPage_Created will be called when the app starts.

The events are listed here: https://www.b4x.com/android/forum/t...or-managing-multiple-pages.118901/post-744867

You can also uncomment this line to get more information (in debug mode):
B4X:
Public Sub Initialize
     B4XPages.GetManager.LogEvents = True
End Sub
 
Upvote 0
Top