Easier way for use SQLite in Phonegap - android

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.

Related

how to access data base in framework7/cordova?

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.

Using Database(SQLIte or others) in Cordova Application for android/IOS/Windows in VS2015

I am trying to make an android application using Cordova template in Visual Studio 2015. Since Cordova is for HTML,js and other plugins, how can we store data from the cordova android app in any database?
I found the compatibility of SQLite with cordova apps but not working.
Can any one suggest steps to integrate SQLite or other database in cordova VS2015?
Typically, you wouldn’t connect directly to a SQL Server Database directly from a mobile device. Instead, you’d access REST APIs via a web service. If you have data stored locally on the device, you can use either Web SQL or Indexed DB. Most developers recommend against Web SQL since the standard has been deprecated. Indexed DB, therefore, is the recommended path. I personally recommend using this Cordova plugin: https://www.npmjs.com/package/cordova-plugin-indexeddb

Secure storage for android PhoneGap application

We are developing a PhoneGap application for iOS and Android in which I need to store a small configuration variable securely (Not LocalStorage, SQLite or any DB implementation). I know this can be done using the KeyChain feature of iOS. Please help me out in finding the similar feature in android or suggest any such Android PhoneGap plugin for Secure Storage to implement in our project.
Use LocalStorage. Documentation is HERE
If you are looking for KeyChain Plugin, you can find it in HERE
There are plugins available in Cordova/ PhoneGap to store data in the device itself. If you are building a native application then you can go for SQLite and if you are building a Hybrid mobile app then you can go for PouchDB .
You can check what all browser's it supports over here. (There he has stated in terms of the browser which Android/IOS/Windows makes use of).
For securely saving key, password or string in mobile application especially in cordova/phonegap apps there is different approaches for different platforms.
For iOS application we can use - Keychain Services
For android application we can use - Android Keystore System
There is plugin named - cordova-plugin-secure-key-store. This plugin uses Keychain for iOS and Keystore for android.
For more details follow blog post here - http://stackskull.com/posts/how-to-save-key-securely-in-mobile-devices
Hope this will help someone.
Use this plugin: https://build.phonegap.com/plugins/161
Note: a phonegap plugin is made of native code, i.e. here Android SDK Java code. This plugin use secured Keychain system. Phonegap plugins simply adds a JS/Java cross-code interface, making possible to call native features with javascript functions. Btw geolocation, notification and so third, in Phonegap doc, are working this way.

how to use android database in/as a phonegap database

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

Convert android app to IOS using phonegap?

I developed an android application with Phonegap and I want to convert it to iOS as well. Before starting my project I heard that we are able to convert same project with multiple platforms using phone gap. But now I don't know how to convert my project to IOS. Can any one suggest good tutorial OR examples to do it.
And also mention what are all prerequisites to convert my android application to IOS using phone gap.
Suggest me some tutorials with examples.
With phongap you can target all platforms including iOS, android and windows etc. using HTML 5, avoiding each mobile platforms' native development language. Code base remains same for every platform. Applications execute within wrappers targeted to each platform, and rely on standards-compliant API bindings to access each device's sensors, data, and network status. refer docs http://docs.phonegap.com/en/3.2.0/guide_overview_index.md.html#Overview
Phonegap is not for converting one build to another.. Using phonegap you can develope for all platforms using phonegap framework, you can generate .apk,.ipa,ota, etc as you wish using sdk in your pc or using phonegap build service. You can read here(phonegap authentic doc) how can you do it for different plaforms.
Nb:Phonegap provides complete documents in their site itself, you can go through and understand, it is helpfull.
You can build on each platform. If you don't want to do that, they offer a Build service that build your app on each platform for you. See https://build.phonegap.com/ for more info.
With phonegap you can create all platform application with same package just you need to clear yourself that for IOS you need certificates to build it. Otherwise same package you are using for android can use for IOS also.

Categories

Resources