onsen.io
onsen.io copied to clipboard
Update lifecycle.html
In template "ons.getScriptPage()" code not worked by xiomi note9s - miui12 (but works any other devices / android / ios) So I had to move code in app.js like document.addEventListener('prechange', function (event) {...
Thanks for the PR!
If ons.getScriptPage
is not working on your device, it could be that this is an Onsen UI bug, in which case it would be better to fix the bug in Onsen UI than to add an exception in the documentation.
Are you able to reproduce the problem in the playground? If so, you can report a bug in Onsen UI and I can fix it instead of changing the documentation.
I don't currently have access to the device you mentioned, so if there is some special case for this device which means that getScriptPage
won't work, please let me know the reason.