onsen.io icon indicating copy to clipboard operation
onsen.io copied to clipboard

Update lifecycle.html

Open akinzeman opened this issue 4 years ago • 1 comments

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) {...

akinzeman avatar Dec 09 '20 23:12 akinzeman

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.

emccorson avatar Dec 12 '20 04:12 emccorson