Load PlayCanvas games if I’m not connected to the internet

Hi

I need to package the game and place in a mobile, so it can be played offline. If I package and place in the device, game does not even launch. But if I host and launch, game works fine.

In FAQs I found below. Can anybody from Playcanvas help me here? If any developer already know about this please help.

/////////////////
Can PlayCanvas games be loaded if I’m not connected to the internet?

Not out of the box. We will add support for local storage of PlayCanvas app files in the near future though. In the meantime, it is perfectly possible to export and download a game from PlayCanvas and edit it to include a manifest and look in the cache for local files before downloading over HTTP. Contact us for assistance if this is something that is a requirement for your game.
/////////////////

Regards,
Basavaraj

How are you packaging it?

You should be able to export the web build and package it in a HTML5 using something like https://cordova.apache.org/

Im trying to install in feature phone with KaiOS which accepts only HTML5 apps.

Right now just placing in the device, but it’s not loading. Even enabling appcache also didnt passed through.

Regards,
Basavaraj

I’m looking at the KaiOS site and there’s no information about how an app works on the OS. Without that information, it’s diffciult suggest any solutions specifically for your problem.

AFAIK, you have to have the PlayCanvas hosted somewhere unless you are using a wrapper like the one I mentioned above.

We can just place locally and play it, by initializing global variables in start.js rather than index.html

With just that, Im able to make it run locally. Even Caching is also not required.

Loading time decreased from 24 seconds to 1 seconds.

Thanks,
Basavaraj