Loading Game Issue in Safari browser

Hello,

I have created sample project using cocos2dx Js-2.2.3.
From the sample project, When i open index.html in safari browser. Game is loading fine.

I have created project using cocos2dx Js version 3.
From the sample project, When i open index.html in safari browser. Getting error.

I have attached screenshot for the error message.

I have debug for some time. This error occurs when loading any Json and Plist file. While reading value from Plist or Json file will be null.

Guys can anyone help me out. This issue was not happening cocos2dx JS version 2.2.3.
And everything works fine if i load game with localhost(server) SetUp

Thanks in advance.
Gurudath

Could anyone of you please help @mannewalis @pandamicro @yuye

Hello,

I have created Sample app using Cocos2dx-JS version 3.7.1.

I made zip file and Uploaded in https://build.phonegap.com/apps

Phonegap is a framework. Phonebuild is a cloud service , which converts you html to apk or ipa

I have created Apk and Ipa files.

Apk files works fine in android devices.
Ipa file will not load game. While loading Json file returns null value.

Cocos2dx version 2.2.3 works fine.

Can anyone have try this method. Uploading game through Web interface and making IPA and running on devices.

Can please anyone help me out with this issue.

Thanks,
Guru

Hello,

I found solution by my self.

I was debugging Loading part of the code.

While loading Json file getXMLHttpRequest was returning status code as 0.

There was condition to fetch information from Json file:
xhr.status === 200 ? cb(null, xhr.responseText) : cb({status:xhr.status, errorMessage:errInfo}, null);

Here Status code was not 200. So always loaded information from Json file was null.

Now i made the condition like:
(xhr.status === 200 || xhr.status === 0) ? cb(null, xhr.responseText) : cb({status:xhr.status, errorMessage:errInfo}, null);

Game is loading fine.

Its temporary solution. I don’t know the reason for response status code 0.

Regards,
Gurudath