Html5 exported games for Ipad, offline solution ?

Discussion and feedback on Construct 2

Post » Tue Jul 14, 2015 11:20 am

Hello,
I'm exporting my games as html5,
and on the iPad, there is a sound issue.
So I remove the ogg audio files and delete the offline appcache.
The html5 works then for the ipad, but not offline, it has to load everytime
And I have to create a separate html5 folder for android/pc version.

My question:
is there an offline appcache solution for the ipad html5 games exported with Construct 2

I'm using C2 r206 and ios 8 on the iPad

Cordialy,
Stéphane
B
4
Posts: 17
Reputation: 228

Post » Tue Jul 14, 2015 12:46 pm

You can, instead of deleting the whole offline.appcache file, remove just the lines with sounds. Open offline.appcache with a text editor, and remove the lines that have at the end .ogg or .m4a.
Then, I think, it should work offline.
Another solution is to wait until Apple fixes the bug.
EDIT: It looks like the bug was/will be fixed with iOS 9, it works on iOS 9 Public Beta 1.
B
32
S
7
G
4
Posts: 397
Reputation: 4,589

Post » Tue Jul 14, 2015 1:25 pm

There is a bug in Safari that it cannot load sound from the offline cache. There is no way to get sounds to play offline: either you disable the offline cache so sounds can play but it won't work offline, or you enable the offline cache so it works offline but sounds might not play.

It is however already fixed in the latest iOS 9 betas, so it should be fixed from iOS 9.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,250

Post » Tue Jul 14, 2015 1:26 pm

thanks for the information @Ashley
hello!! coming soon EGS 2016
B
16
S
1
Posts: 26
Reputation: 944

Post » Tue Jul 14, 2015 2:35 pm

Thank you all !
B
4
Posts: 17
Reputation: 228

Post » Tue Jul 14, 2015 7:20 pm

By disable the offline cache do you mean delete the offline.appcache file or is there an actual option you can select or deselect?
thanks,

james-
B
6
S
2
G
1
Posts: 26
Reputation: 633

Post » Tue Jul 14, 2015 9:43 pm

Message: aroderick can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
I think I'd be grateful if I could have any sound when loading from an icon on iOS 8.4 but I get nothing, Even when I follow Stephan's instructions above.

Sound is fine when in the Safari browser when it's first loaded. If I start it from it's icon on the desktop. No sound at all. No sound effects, no music.

http://www.aroderick.com/bluejayway-07.15.capx

james-
B
6
S
2
G
1
Posts: 26
Reputation: 633

Post » Thu Jul 16, 2015 8:55 am

hello aroderick,
when publishing my html5 game (on dropbox) I delete in media the .ogg files, and I delete the offlina.appcache

it works then fine on the ipad ios 8.4
You can export it to the desktop, and it works with sound in fullscreen: here is an example
https://db.tt/hV8JnfqB (this will work only on ios : no sound on pc or android...and it 's long to load cause there is a big mp3)

I can't open your capx, it needs an addon..;
B
4
Posts: 17
Reputation: 228


Return to Construct 2 General

Who is online

Users browsing this forum: jefftrier, vikuserro, Yahoo [Bot] and 7 guests