Send monaca localkit to normal server

Asked 2 years ago, Updated 2 years ago, 47 views

I transferred the onsenUI app that I created with monaca localkit to the rental server along with the folder.From the PC point of view, it's working properly, but from the iPhone point of view, it's white.
Is there such a restriction somewhere?

Also, what should I do to see it from the iPhone?
Thank you for your cooperation.

monaca

2022-09-30 20:56

1 Answers

I think you are loading components/loader.js.
At the beginning of loader.js, you can find the following description to take the app hierarchy.

var relativePath=location.href.split("/www")[1];

This is the part of the script that retrieves the relative path based on the www/ directory.
This part seems to be an error when uploading only www/under control when uploading to the web.
I think it will be resolved if you rewrite the script for the web or upload it including the www directory.

===Addition===

I noticed one more thing, so I will post it.
If a script runs that includes plug-in operations registered in other monacabower in parallel before loading loader.js, it is likely that an undefined error will occur.

Try installing loader.css after loader.js, and then installing normal js to verify operation.

擬 I am adjusting the read by request block, but if it is confirmed that this is the cause, I think it would be better to use callback after script reading if possible.


2022-09-30 20:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.