OverviewV-Play 1 SupportCan i use Database › Reply To: Can i use Database

OverviewV-Play 1 SupportCan i use Database › Reply To: Can i use Database

V-Play Team

Hi Michael,

if you have a look at the OfflineStorage/Databases folder, you will see there also is an ini file created. However, it does not make sense to put a manual sqlite file in there, because this approach does not work for other platforms. In the current V-Play version, there is no way to use a custom path where the sqlite file is stored or where it is read from, i.e. you cannot bundle a sqlite file with your appliation at the moment. Thus the recommended way to bundle data with your app is to save it as a json file, and then at the first application launch read the contents of this json file with fileUtils.readFile(), then call JSON.parse() for the contents and then store this data into a Storage component. You will only need to do this the first time the application starts – every consecutive call the data is already written in the Storage database.

Cheers, Chris

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support