ilan Expert Licensed User Longtime User May 27, 2024 #1 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? WebView is reloading when app is gone background and came back in iOS and Android? I've a small app which holds a webview nothing more than that. I'm loading the webview with a url. but when my app is gone background and came back the webview is reloading, For me it should not ha... stackoverflow.com 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?
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? WebView is reloading when app is gone background and came back in iOS and Android? I've a small app which holds a webview nothing more than that. I'm loading the webview with a url. but when my app is gone background and came back the webview is reloading, For me it should not ha... stackoverflow.com 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?
Erel B4X founder Staff member Licensed User Longtime User May 28, 2024 #2 The process was killed. The app was restarted. Upvote 0
ilan Expert Licensed User Longtime User May 28, 2024 #3 Erel said: The process was killed. The app was restarted. Click to expand... 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: May 28, 2024 Upvote 0
Erel said: The process was killed. The app was restarted. Click to expand... 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
Erel B4X founder Staff member Licensed User Longtime User May 29, 2024 #4 ilan said: so when this happens Erel will B4XPage_Created not be called again when i return to the app? Click to expand... It will be called. ilan said: is there a way to know if the app was killed when it was in background so i can reload the webview content ? Click to expand... 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): Code: Copy Public Sub Initialize B4XPages.GetManager.LogEvents = True End Sub Upvote 0
ilan said: so when this happens Erel will B4XPage_Created not be called again when i return to the app? Click to expand... It will be called. ilan said: is there a way to know if the app was killed when it was in background so i can reload the webview content ? Click to expand... 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): Code: Copy Public Sub Initialize B4XPages.GetManager.LogEvents = True End Sub