Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lifecycle.html #564

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update lifecycle.html #564

wants to merge 1 commit into from

Conversation

akinzeman
Copy link

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

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) {...
@emccorson
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants