I have been investigating using couchbase / couchbase mobile in an iocic hybrid app. One really great thing about developing with ionic is the fast turn around time by doing most of your development in a browser before deploying to a device. My question is it possible to use couchbase mobile from a ionic app running in a browser ? I assume that I would have to run an local instance of couchbase mobile on my dev machine and access it by the rest api in my application to test in a browser, then when I go to a device use the couchbase mobile cordova plugins
I found this link which looks like an option
https://github.com/couchbaselabs/couchbase-lite-local
Other options are to use pouchdb/couchdb combination instead of couchbase.
PouchDB mostly works with Couchbase Sync Gateway (work in progress). It has support for just about everything except attachments.
If you run into any issues, you can replicate from PouchDB to CouchDB, then from that CouchDB to Couchbase Sync Gateway.
When you create / replicate an Pouch DB with pouch it effectively creates a DB in the browser. Take a look here http://pouchdb.com/adapters.html#pouchdb_in_the_browser to see which DB it creates.
I've been using this successfully with Ionic for a while now.
Related
I am creating a hybrid mobile application using Cordova/Ionic/Angular Js. My requirement is to Sync the Data (or in other words prefill the mobile DB ) from the Desktop(where the Mysql DB is residing) with the SQLite Db (residing in the phone) when i connect the phone to the desktop through USB. I can't use Web Services since the app has to run in an offline mode.
I have done a lot of searching for that but all i could is the solution for Android app(native) where they are mentioning to use JDBC /Socket Programming. I have found one cordova content sync plugin but i think it again requires the internet connectivity , is there any cordova plugin that can help in that? Please guide.
Who should perform the sync? The mobile device or the desktop computer?
I would suggest the following:
Enable USB Debugging in Android
Desktop computer should have adb drivers installed.
Use adb commands to communicate with your device (i.e. pull the database, perform some updates, push the database)
There is a tool on github which does something similar, maybe you can look at the source to get and idea how to do this: https://github.com/google/adb-sync
I am trying to develop an HTML5 app to be ported to native via PhoneGap. Is it possible for the app to be able to act as a server on a mobile device, with the same app on another mobile device acting as a client and connecting to the former? This is all within a local network.
I am new to PhoneGap and I understand that most server implementations are on platforms such as node.js or PHP and that PhoneGap only supports HTML, CSS and JavaScript. I think I might be partially wrong here as there are various plugins that could help ease the abstraction between PhoneGap and the native developer.
Other alternative suggestions are very welcome :)
What exactly are you trying do by having a client/server app? I think your best bet would be to have one app that posts and gets info to your own webserver (not an app). Therefore, that one app can act as a server by "publishing" information to the server and the other can act as a client by only reading from the server.
I am working in flex 4.6 air application, in which i am fetching data from server through HTTP services. We are using the Mysql database and php for making services. I want to implement the online/offline functionality in this application any one has any idea about that how it is possible through HTTP services or there is any other coding stuff for achieving it.
Thanks
I am trying to implement a Phonegap (HTML5) application which connects to a Websocket server (running in an embedded device, also has Bonjour service) to exchange data within home network.
I would like to know the best possible way of detecting the server IP using Phonegap. I have explored and found that Titanium and Quickconnect support Bonjour. But I would like to stick to Phonegap for various other reasons.
Any alternative way of detecting the server IP within the local network is also okay.
Need your suggestion.
There are two iOS Bonjour plugin implementations for Phonegap (Cordova) on Github:
https://github.com/jarnoh/cordova-dnssd
https://github.com/SayGoSolutions/Cordova-BonjourBrowserProxy
Unfortunately I haven't found a cross-platform implementation.
I recently created a web application with GWT. Then re-used most of the code to create a Swing version of the application that accesses a local database in offline mode. I am now implementing the 'online' mode of the application and want to access the same data as my GWT application.
Any ideas? Considered connecting directly to the MySQL server via SSL, but that's not working and doesn't seem as scalable. Should I use REST?
Any suggestions would be helpful.
To solve this problem in the past, we've used Jersey to create REST Web services which returns protocol buffers. The Swing app would then interact with the protocol buffers. The GWT app would ask for content type 'json' and receive protostuff objects in return. It worked quite well. That way, both apps can communicate with the server in the exact way.
Edit:
To allow your swing app to communicate with GWT-RPC, look at this blog article.