Javascript data store solution using PhoneGap - javascript

Does anyone have any experience of storing data in JavaScript across all mobile platforms using PhoneGap? My ideal solution would be to use something like SQLite, but unfortunately SQLite isn't supported across all the platforms PhoneGap supports.
I tried to ask this question a little while ago, but it got quite a few negative marks. If you think this is a bad / pointless question I would love to know as it will hopefully help me to understand the problem!
Cheers,
Nick.

I would check out Lawnchair. It has a simple storage API (using SQLite, domStorage or Gears behind the scenes) for iPhone, Android and PalmOS as well as any other browser that supports cookies.

Related

Windows RT Camera and HTML/JavaScript

So I really don't know how to ask this question because I have not found any information on it at all but I will give it a go. Though a web application that I am developing I need to take a picture and save it using the built in camera.
Is there a way to do this in JavaScript?
Using javascript might not be the best idea, since I think its still in Beta, and its buggy. You can use getUserMedia in html5 or you can use flash. But accesing hardware using javascript is gonna be very complicated and will require a lot of permissions.

Using presistence.js to create cross-platform database(websql or indexeddb whichever is supported by browser)

I'm newbie in persistence.js and would like to know how can i use it for my application that will be developed for iOS, Android and Windows Phone.
Any code example will be very helpful.
Thanks & Regards.
Do you want to consider alternative javascript database library YDN-DB, which I created. It has reasonable good documentations and example codes.
It is pretty straight forward to use it. Any problem, just drop a comments or questions.

Cross-platform Mobile App with HTML5

I was asked to provide a tablet application with HTML5/JS/CSS which does not have dependency on any platform. Requirements:
Cross-platform mobile/tablet application
Offline capability and Storage (it should work in lack of internet connectivity and be able to synch after get connected)
Real-time data (it should be able to show any small changes from sensor values)
I should be able to connect to a CAN interface and get sensor values and ECU data. Because I have not come up with any solution for this part, I am thinking about Bluetooth. However, HTML5 doesn't support Bluetooth.
I'd appreciate to give me some vision if HTML5/JS/CSS can deal with this requirements (especially with Bluetooth)
Another question is that is it possible not to use any frameworks such as PhoneGap, RHoMobile, .... and just develop cross-platform app with raw HTML5/CSS/JS and have all requirements?
Have you looked in to PhoneGap / Cordova yet?
You can easily create cross-platform mobile applications using HTML5, JS and CSS.
http://phonegap.com
The built-in API provides access to most of the device's native features and functions. You can manage offline storage using localStorage or SQLite databases, and can detect network connectivity statuses to determine if you are offline / online and what level of connection you have (Edge, 3G, 4G, WiFi). With a combination of those, you could manage your data synchronisation.
As for bluetooth, the PhoneGap API doesn't support it out of the box, but it is highly extensible so developers can create their own plugins for missing or required functionality.
The community is awesome and many of the plugins have been compiled into a central repository on GitHub: https://github.com/phonegap/phonegap-plugins
I know that there is a Bluetooth plugin for Android available on that repository.
You can also write your own plugins quite easily to add any extra features that you need:
http://www.adobe.com/devnet/html5/articles/extending-phonegap-with-native-plugins-for-android.html
http://www.adobe.com/devnet/html5/articles/extending-phonegap-with-native-plugins-for-ios.html
** EDIT **
You posted an amendment to the question afterI'd written this answer mentioning PhoneGap. The honest answer is no, without a framework that interacts with the native device functionality, raw HTML5, CSS and JS would not be able to deal with bluetooth etc.
No, you cannot. A pure web application is not able, and will likely never be able, to use bluetooth.
HTML5 Bluetooth and Audio
Having developed a Web App before, I can tell you that anything involving offline has to be simple, and using device hardware is out.
Check out the frameworks, you may be able to get something to work. But it may just be a better/more realistic bet to develop a Native Application from the get go.
After a lot of searching I came up with MoSync which is a cross-platform SDK and is intended for developing different mobile applications. I believe MoSync can be the best answer for this question since it is really a rich SDK (C, C++, HTML, JavaScript) and has great tools and community that try their best to help you.
For further information I encourage developers to check here or visit their websites.
Most of the future mobile apps will be developed using HTML5. HTML5 standards are getting adopted very rapidly and those standards are supporting phone features like GPS, Accelerometer, Camera, Storage etc.
I will recommend you to use PhoneGap if you want to use any device features.

find the firmware in javascript

I am looking for a way to find the os version and model version of the computer my site is being viewed on.
jQuery, javascript, html, php, asp...
Any language browsers generally support will do.
I know it's possible, comex did it for iOS.
I think he did:
firmware.indexof("4.0");
But I need the model too, as I said before. That is a veeeeeerrrrrryyyyyy long script that won't work for me anyway.
I googled
it, but no luck.
Thanks in advance!
If you expect that your clients will have Flash installed (95%+ of the world does), you can use a Flash movie to check the flash.system.Capabilities object. It has lots of information you might be interested in. If you're trying to find it on an iOS machine, then obviously this won't work since it's not going to have Flash on it.

Things to keep in mind to develop websites for Blackberry

I need to develop a website that work on Blackberry.
Please suggest me the things which I should keep in mind to develop website on Blackberry and what all things are required to develop website for mobile (like public IP etc)
Following things are required in the website Please let me know how much these will be supported on Blackberry Browser:
Geolocation.
Google Maps API.
temporary local storage (for text data).
Ajax.
Please let me know how much HTML5 support is available on Blackberry Browsers.
Thanks in advance
As far as I know, Ajax is supported with the Blackberry Browser. You most likely won't be able to do everything in a fancy way, so be wary of that. I've also noticed that there are a ton of CSS limitations too.
Also keep in mind that some Blackberrys only support up to certain version of CSS, Javascript etc. There are lots of documentation on what is and what is not supported. Here is an example:
General overview of the Javascript supported
What is your background concerning web development? Regardless of your skill you should take a look at these two links.
Mobile best practices
This is a must read for anyone serious about developing for the web. There are so many experienced developers who don't follow these essential practices.
Yahoo! Best practices

Categories

Resources