You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Wednesday, February 8th 2023, 12:09am

Krpano Working Offline on Smartphones?

I've searched this forum extensively, and whilst there's lots of similar questions, I've been unable to find a solution that works.

I've been using Krpano to create virtual tours, with .mp3 audio files attached, for visitor attractions. At some of the visitor attractions, there is no mobile phone signal, so what I'd like to do is to let users download the tour over Wi-Fi before they set off.

I tried downloading files to the browser cache using the manifest method, but then realised that it's been deprecated. I've tried setting up a service worker to download files to the cache, but couldn't get that working. I've hunted for, and installed many website downloader Apps, but none work. I don't want to have users downloading a .APK, and anyhow, I'd need something else for iPhones.

Can anyone recommend a simple way of achieving what I'm trying to do?
Cheers, Chris


Thursday, February 9th 2023, 10:30pm

...I think I've cracked it...!
Cheers, Chris


Thursday, February 9th 2023, 10:36pm

...I think I've cracked it...!

tell us ! ;-)


Friday, February 10th 2023, 12:02am

...I think I've cracked it...!

tell us ! ;-)
Hang on for two ticks...
Cheers, Chris


Friday, February 10th 2023, 12:26am

Just setup a webserver on the device?


Friday, February 10th 2023, 12:20pm


After a couple of days of Googling, faffing, trying apps and getting nowhere, I finally managed to find out how to achieve this. I’m really
surprised no one else has posted regarding this as it seems like it’s pretty fundamental to be able to make tours work offline.

To see an example of what I’ve done, go to As you’ll see, it takes a while for the first panorama to display and that’s because all the other panoramas and audio are downloading in the background. Before you click to go to the next panorama, disconnect your computer / smartphone from the Internet. Then, when you go to the other panoramas, you’ll see that the images and audio correctly load, even though you’re offline.

Here’s what you need to put into the tour.html file. For each image you need to have a line such as:

<link as="image" rel="preload" href="" />

For the audio, it needs to be:

<audio id="01" preload="auto"><source src=""></audio>

If you check out you’ll see how I’ve added the audio to the panoramas.
Cheers, Chris



Posts: 623

Occupation: coding in krpano

  • Send private message


Friday, February 10th 2023, 1:17pm

Hello, see this thread on preloading, it might be helpful…89047#post89047


Friday, February 10th 2023, 6:54pm

Thanks Александр, I'll check that out...
Cheers, Chris


Tuesday, March 14th 2023, 1:49pm

Hello fellows!

Use preload method is a good start, but i recently had to do a app with my tour and only way that a I found was using PWA. With this, you can control when to download and where you storage your files.

It is strange at first, you can try *g*


Saturday, September 9th 2023, 9:44am

I had to revisit this as it was only intermittently working. I’ve now rehashed the whole lot so thought I’d post my new method for getting it working.

It’s all live at

If you look at the source code, you’ll see that I’m now using a set of JavaScript functions to preload the images and audio.
Cheers, Chris