I want to use android database into same phonegap apps.
more descripation:
I created phonegap application, but phonegap application is not supporting services so, we have created application that in java for android and will create for iPhone also.
But the problem is that i need to check store data into android(.java) for service. but how can we use that database into phonegap(.javascript)
sorry for my grammar.
You need to write phonegap plugins for same. Please refer link for more details.
I think that persistenceJS will fit your need
Related
I'm developing a cross-platform mobile app using Cordova in visual studio.
The problem is that I need a database to store and retrieve data, usually I create local database inside the visual studio, but I cannot find the localDB option within a Cordova app. So, if anyone can help me with creating a database and connect it to the Cordova app? What are the best methods/ways to do it?
Please check here. Hopefully, it will be helpful with you.
I want to use framework7 cordova to write an app, but at the same time, I want to store some data with data base, is that possible?
I have heard about the cordova-sqlite-storage plugin, does it use the window.localStorage? Is there a better solution?
The cordova-sqlite plugin is a good choice. Much simpler to develop and test than using file for example. With this plugin, in intel XDK, you can test in the emulator directly.
I need use SQLite in my Phonegap application, but I'm new in Phonegap
What is easier way for work SQLite in Phonegap?
My application is focused for Android device
Try this plugin https://github.com/litehelpers/Cordova-sqlite-storage. This is supported by phonegap build also. Refer how to use and limitations section before using it.
If you are planning to use phonegap builds and need any other alternative plugins visit https://build.phonegap.com/plugins and search for sqlite plugins.
I have a cordova hybrid application and mobile web application. I came across a problem while application upgrade. Mobile web application works perfectly as all the static files which are modified are fetched from web server. But my hybrid application is not upgraded. I can push a new version to PlayStore or iTuneStore, but users has to manually update the application. Is there any way to update the resources(such as JavaScript, JSON or CSS) in assets folder? I gave a try, but failed. Assume that as part of a WebService request or push notification, I will get a list of files that are modified on the web server. How can I get these files in my hybrid app?
Please help if any of you faced the same problem.
You will need to check out the FileSystem and the FileTransfer APIs
I still did not get a concrete answer . But there is a tool called TriggerIO which offers this feature. Also PhoneGap cloud provides this for collaborative testing.
I believe behind the scene they may be using ApplicationCache to check for the resources.
Depends on your app usecase there is another way too. If you are okay for lesser performance, rather than packaging your static files along with the bundle, refer it from web. In config.xml, content src="mydomain.com/index.html". I use this for a specific product implementation.
You can remote update your hybrid apps with codova-app-loader, please refer https://github.com/markmarijnissen/cordova-app-loader.
I am developing an content oriented app for android and iphone. I finished developing in android which has database in the format of androidApp.db. Is it possible to use the same database for iphone as well because in iphone the database format is .sqlite.
Is it possible to use Android - androidAppdatabase.db
for iOS - iphoneAppdatabase.sqlite?.
If so please could you suggest some steps.
Thanks for your help guys.
YES, its is you can use this DB it in both android as well as iOS
android and iOS both supports SQLite
EDIT : Download SQLite expert from here
the db file is used to copy in both android and iPhone applications, check following link, to know how to do this in iOS.
Add an SQLite database to an iPhone app