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

When running the game on iPhone, the loading animation will reload the website #1306

Open
dkennnn opened this issue Jan 3, 2024 · 1 comment

Comments

@dkennnn
Copy link

dkennnn commented Jan 3, 2024

I have a problem when building a game on the h5 platform
I tried running the game on Android, Web, PC, MAC, IPAD normally
But when I use my iPhone to run the game on safari, sometimes the loading animation (.sk file) will automatically reload the website.
I tried using xcode to run the iphone emulator and it worked fine, my problem was when using a real iphone
Can anyone give me a solution to this problem?

@dkennnn dkennnn changed the title When running the game on iPhone, the loading animation will reload the game When running the game on iPhone, the loading animation will reload the website Jan 3, 2024
@xiaoguzhu
Copy link
Member

I think this is because 'sk' extension is used as 'Safari History Index File' on Apple Safari browser. The solution may be rename 'sk' to something else like 'sk2', and then register a loader for 'sk2'.

Loader.registerLoader(["sk2"], Laya.TempletLoader);

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

No branches or pull requests

2 participants