cordova-plugin-splashscreen icon indicating copy to clipboard operation
cordova-plugin-splashscreen copied to clipboard

Invoke plugin initialize if the os restore the app

Open xGeorge opened this issue 6 years ago • 4 comments

If the OS restore(reset) the app a white screen is showing, unfortunately the cordova init and deviceready it's still not available

xGeorge avatar Nov 13 '18 17:11 xGeorge

What platform are you referring to? What is happening when exactly?

janpio avatar Nov 13 '18 17:11 janpio

At the moment android, basically im invoking a sdk(intent) but if it takes more than 5 minutes the OS restores the webview, this is a common behavior by the OS another sceniario is if the device doesnt have enough ram and the app(WV) its on background

xGeorge avatar Nov 13 '18 18:11 xGeorge

I still don't know what is happening when.

janpio avatar Nov 13 '18 18:11 janpio

webview ..invoke(intent).....-> sdk activity, OS .....if needs memory.... -> reset o frees memory from background task, activity or apps sdk activity ...invoke(callback)...-> webview(binded callback) webview was restored so it will load again the webview

xGeorge avatar Nov 13 '18 18:11 xGeorge