Application Craft, PhoneGap and Parse - A match made in heaven? - javascript

If I wanted to design apps that required data storage and were targeted for multiple mobile platform's, would using Application Craft to create the UI, Parse to store the data and PhoneGap to wrap it all up for the relevant target device be a potential way of approaching this?
Sorry for the generic question, black and white answers are ok in return.
What would be the biggest limitation to this approach?
To keep it simple, lets say the app is to capture images and text input from multiple users, store it and then display it in some form of activity feed.

I'm not very familiar with Application Craft, but it seems to be a paid version of PhoneGap -- meaning that they each seem to accomplish the same thing so use one or the other (unless I'm missing something...). PhoneGap can use jQueryMobile (or other frameworks) to help with the UI.
If you're going to use Parse within PhoneGap then you will need to find a PhoneGap plugin that allows Parse to work cross-platform. There likely are some, but if not you'll have to develop a separate plugin for each platform.

Related

How to call a native mobile app that read barcode and return it's data to HTML

There're couple of possibilities which completely not solved my problem yet.
First I tried to use PhoneGap but I can't use it anymore because of IndexedDB issues currently it has.
Then I switched to the option to call a native mobile application from a web page that can read a barcode.
Eventually this native application has to return barcode data it's
read, in order to make use of it within web app.
I couldn't figure it out properly and appreciate if someone can explain this if it's possible. Some of the questions I looked at as of now;
barcode scanning in web apps for smartphone/tablet browsers
How to open a native iOS app from a web app
Since commentator not answered even it's the real answer, I'm answering my own question to be shared openly.
Even it's possible to call another application to read barcode, it's not possible to turn back to the same app with this 3rd party app if it's not also managed by you directly.
So the alternatives may vary depending upon the specific situation but I had to let user make the 3rd party app to read barcode, and then wait user to turn back to my originated application after getting these results linked to my website.

Cordova/Phonegap - Building DataTables with WebSQL

I'm making a small application on Android/iOS in Cordova(Phonegap). The main function of the app is to maintain some local data in a database.
For this reason I've used the WebSQL, cordova has a API to use it etc..
http://docs.phonegap.com/en/1.2.0/phonegap_storage_storage.md.html
But now i want to make a CRUD table. (Create, Read, Update, Delete)
Because i'm using Cordova i cant use PHP. The only things cordova supports are Javascript CSS and HTML. (thats why the WEBSQL). I'm not gonna use a webservice to connect with an online database (app must be used offline as well, and syncing <- its a small app, don't want to make things complicated)
So my question here is: Is there a library or framework etc.. that will make "DataTables" very fast that only works with javascript/websql? I'm not gonna program it all manually if there is a solution for this.
I have checked this:
https://editor.datatables.net/examples/styling/bootstrap.html
Its perfect in all matters ! except it uses PHP...
So is there anything out there that can help me fix this fast? Thanks in advance.
I used jQuery DataTables (http://www.datatables.net) for this purpose and I can recommend you to use it too.

New to PhoneGap, need guidance to get started

Ok, I've been in planning for developing a PhoneGap app for a few months, and it's come time for me to start coding. There are a few things I am confused about that I need to clear up before I can get going, because things don't seem to be going well.
To begin, I am using PhoneGap to build this app because I plan to release it to multiple platforms (primarily iOS and Android) and based on the tutorials for Objective-C that I've read, I'd much rather use JavaScript/jQuery/jQueryMobile to develop the app. If anyone thinks that these are not appropriate reasons to be using PhoneGap and that I should be using something else, please let me know.
I seem to be misunderstanding some things that are apparently self-explanatory about PhoneGap, and after hours of scouring the internet looking for answers, I can't seem to find anyone else who has had the same problems as me. To clarify, I am quite comfortable with my HTML/CSS/JavaScript skills. I literally just need to GET STARTED.
I see the terms PhoneGap and Cordova used interchangeably. From the sources I've seen they are pretty much synonymous, but I'd like to know what the ACTUAL difference is.
I'm fairly certain I have PhoneGap installed. I can run PhoneGap commands and I was able to get the basic Hello World application and run it on an iPhone emulator. I then began to make changes to the files and rebuilt and reinstalled to test it and it replaced all my changes with the original application. I'm not sure what I did wrong, but I feel like I'm missing something.
Can I use other JavaScript libraries like jQuery or jQuery Mobile with PhoneGap? I'm not sure what I'm limited to, or if I can use them, what the best way is to do that.
I've seen example applications that were able to use PHP even though many sources say that you can't. How is this done?
Can multiple pages be used or is it better to modify one to make it seem like there are multiple pages?
Any other suggestions on exactly how to get started will help. Thanks!
Only edit the files in your www folder, because when you run
phonegap build ios
it copies files from the www folder into the various different platform folders (depending on which platforms you've added) and compiles an application out of them.
http://www.tricedesigns.com/ - lots of sample apps and tutorials
http://www.raymondcamden.com/ - ditto
http://coenraets.org/blog/ - ditto
http://devgirl.org/ - tutorials
https://groups.google.com/forum/#!forum/phonegap - official group
Cordova is the open source community driven version of the framework, Phonegap is a "snapshot" of cordova at a given point that Adobe specifically supports through it's build service, there are small differences but on the whole they're more or less identical in feature set and use.
You can use any JS libraries you want, and you'd use them exactly as you would normally on the web.
PHP code cannot be used inside a phonegap/cordova app but there's nothing to stop you loading data from external sources.
Regarding multiple pages, I'd generally stick with a single page and just show/hide parts of it as needed, just so you're not having to deal with re-loading libraries on each page load and adding overhead to the app itself.
As for where to start - there's a few good books out there but you could do worse than to give this tutorial a go..
http://coenraets.org/blog/phonegap-tutorial/

where to keep the database in a phonegap application

I am new to the Phone gap domain.i have done a small application in android.i just thought of implementing it in Phone Gap and see how it works?
I have used a static database in my android project.i want to use the same for the Phone Gap project?
My big Doubt is where will we keep this Database and how will we access them?
for example..in android we create a Db methods...and store what we want in an array list? and then access them when we want?
for example
instance name = db.arraylistname(id);
column name = instance name.get(0).get("column name");
other doubt is about images.what resolution images(hdpi/mdpi/ldpi/xhdpi) should we use in the www/img/ folder?
which language is better to use in Phone Gap Jquery or java script?
I have used jQuery + jQuery mobile, and they've worked charmingly. jQuery mobile even has some documentation about using phonegap, which can be found at http://view.jquerymobile.com/1.3.0/docs/faq/how-configure-phonegap-cordova.php. I've only used ajax to access external databases, so I can't personally offer any advice on local storage, but this question on SO has a marked answer so it looks like it worked for them: Best database option for PhoneGap applications?
Let me know if you have any questions or want me to clarify anything regarding jQuery Mobile.

Dilemma... Which Program & Language to develop my Android and iOS App

I'm developing an app for both the android and ios platform. I'd like to take a route that allows me to only have to code once for both platforms. There are 2 options I've come across:
Develop in Flash builder 4.5 with flex (actionscript, or I've heard javascript also?)
Develop using Phonegap (javascript)
The app is very simple - it will use the google api and the phone's geolocation function, then also display more information about the business listings from google map's api. Downloaders of the app will also have to register to become free members. All of this information will have to be put into a mysql database on my server.
So my question is, which is the best route to take with what I am hoping to accomplish? If using Flash builder, is it best to learn actionscript or javascript? What's the best way to connect with the mysql server if I'm writing in javascript, ajax?
If you are serious about it and want to create other apps as well in the future, you should learn the native frameworks/languages for each of the platforms. If not, and you just want to make one quick app I would choose Phonegap rather than Flex/Flash.
Firstly, get familiar with HTML and Javascript to understand what they are even capable of. There's no point in trying to complete a project with tools that you don't understand. As for the options you named, I'd definitely go with the Phonegap method as it is much simpler.
However, you also need a backend for your solution if you're trying to use a MySQL or other database to store any data. For this you'd need some server-side language like PHP, JSP (or you could use NodeJS, if you want Javscript on the server too) etc, that retrieves information from the database according to the requests received from your app.
In conclusion, I'd suggest you to read more about PHP/MySQL, Javascript and making webpages, since this is what you are actually trying to do if you use Phonegap, even though you might look it as an app. Do some tutorials, get to know the languages before you try to take on something that surpasses your skill level just yet.
For a nice small db-interface I'd rather suggest using ruby (with sinatra as mvc-framework and activerecord on top of mysql, or just use rails) than using php!
http://guides.rubyonrails.org
http://www.sinatrarb.com/

Categories

Resources