Creating and using iOS settings.bundle values with JavaScript in PhoneGap - javascript

Is it possible to create a section in the iPhone settings app, using PhoneGap (v1.4.1)?
I cannot find anything pertinent in the PhoneGap API.
My aim would be to use the user-set values in JavaScript.
I imagine that if PhoneGap does not currently have this functionality, it is possible to perform this task with a PhoneGap plugin.
Does anyone know of a current plugin that might enable Settings.bundle creation, and reading?

you can use applicationPreferences plugin https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/ApplicationPreferences

Related

Nativescript core OCR plugin

I'm trying to develop an ocr app with the Nativescript plugin:
https://market.nativescript.org/plugins/nativescript-ocr
https://github.com/EddyVerbruggen/nativescript-ocr
and it seems that the example doesn't works or I'm doing something wrong. I read something about Firebase ML kit but I have no idea about that and if it works offline (Offline work is a must for me).
https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/docs/ML_KIT.md
Could be deprecated the first plugin?
might I use firebase?
could it use with nativescript core (only js)?
It works offline?
Any idea about how to start?
Yes, the OCR plugin is kind of deprecated, not actively maintained anymore.
Firebase ML-Kit is recommended and it has different methods you could use for text recognition, one works on device and another on cloud. Refer the same read me you have linked in your question.

Receiving information Bluetooth devices using an Android App

I would like to know if you can send/recieve information from a Bluetooth device such as a headset or something of the sort. As well as if this is possible using JavaScript. The app I use to code JavaScript is called "DroidScript", which allows you to make apps using JavaScript and HTML.
If you are using DroidScript then you will probably need to create a DroidScript plugin in Java (assuming DroidSCript does not already do what you want).
Note: The latest alpha version of DroidScript can generate template AIDE projects for creating DroidScript plugins.

How do I go about creating a javascript ipad app that uses local storage?

I need to create an internal admin app. The app needs to be able to:
For V1
- Wrap and execute javascript code
- Will not rely on any iOS code other than perhaps the code necessary to load the javascript.
- Uses local storage
For V2
- Work offline (which means javascript code needs to be loaded in)
Any ideas on how to go about implementing such a thing?
By far the easiest and best supported way is to use Apache Cordova. They did all the work of wrapping a Webview in a native app and have a rich set of plugins for integration with all kinds of mobile APIs.
Since the app will be running in an embedded browser you can simply access the normal Localstorage APIs.
The Cordova tutorial by #ccoenraets may be a good way to get started.
From my findings the following two are great solutions:
Ionic
Apache Cordova

Change device profile using phonegap / cordova

Iam using PhoneGap/Cordova + Backbone for developing a cross platform mobile application. Using phonegap i can access almost all the functions of the device. Is there somehow possible to access or change the device's profile using PhoneGap or using backbone ? I searched a lot but couldn't find any relevant results..!!
Is there any documentation available on this ?
Any help will be very much appreciated..!!
I didnt get what you means about "device's profile". You talking about accounts?
About Phonegap/Cordova you can do everything that a native app can. But sometimes you need to write a native plugin to interact with device. I already had to do that to do push notifications using a third lib.
You write a native class to do something, register it in plugins, give permissions and then call it with your javascript.
You can find documentation here: http://cordova.apache.org/docs/en/3.4.0/guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide
Add this cordova plugin into your project.
https://github.com/apache/cordova-plugin-device
Put these line of codes into your view page
alert(device.cordova);
alert(device.model);
alert(device.name);
alert(device.platform);
alert(device.uuid);
alert(device.version);

What's the difference between the app based on backbone.js/ember.js and the one based on Phonegap/Sencha Touch?

As mobile web app gets more and more prevailing, a lot of tools become available for developing mobile web app. In my opinion(I don't know if it's correct), there are two ways to develop mobile web app.
One way is to use some javascript framework such as backbone.js and ember.js combined with some other libraries such as Zepto and iScroll to do this. The other way is to use some integerated toolkit such as PhoneGap and Sencha Touch to write the whole thing. What I want to know is what's the difference between these two ways? How should I choose between these two ways?
Phonegap is a wrapper framework which helps html/javascript app to run in a native container and give a medium to execute a native code whereever required. Phonegap is not integrated with Sencha Touch, you can use it with any client-size javascript frameworks like backbonejs, amberjs, jquery, jquery mobile, etc. Application built using Phonegap comes under hybrid application category.
Please check some of this preps to get more info:
http://www.slideshare.net/macdonst/building-native-mobile-applications-with-phonegap
http://www.slideshare.net/kurotanshi/jsdctw-introduction-to-phonegap

Categories