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..!!

Answers


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); 

Need Your Help

How to implement bullet points in a JTextPane?

java swing jtextpane bulletedlist

I have a JTextPane with a StyledDocument and RTFEditorKit implemented.

SQL script to insert new records

sql sql-server stored-procedures

I have one table whereas there are 5 millions records available and each day that records add by 20000 to 50000. I want to create script where I can keep old records and add all new records each da...