davibe / Phonegap-SQLitePlugin

A phonegap plugin to open and use sqlite databases on iOS.
191 stars 90 forks source link

Open database - Path for bundled database #25

Open njprrogers opened 12 years ago

njprrogers commented 12 years ago

Hi,

I've been trying to bundle a prepopulated sqlite database with my IOS app.

Is there an automated method for bundling this with the app? I tried placing the .sqlite file in the Resources directory but with no luck.

I'd appreciate a heads up on how to approach doing this.

Thanks,

Nick

davibe commented 12 years ago

There is no "automated method". I think you can add the sqlite database file just like any other application asset you would include in the application. I never tried this directly but I know some users have been doing the very same thing.

padzilla commented 12 years ago

http://gauravstomar.blogspot.com/2011/08/prepopulate-sqlite-in-phonegap.html

All the steps needed to do this.