phonegap-plugins

Access phone alarm (native resources)using html5 (Reminder app)

偶尔善良 提交于 2019-12-18 07:18:50
问题 These are my technologies, HTML5 Jquery mobile, Jquery, Java Script Css Cordova We are developing app using HTML 5 and we need to access phone (Android,iPhone,Windows Phone) resources, such as alarm (to create reminder). Questions, Can we access native resources of mobile phones through this technologies ? Do we need different coding to access different mobile operating systems ? What are the pros and cons of this method ? what is the Best method of doing this ? Any suggestions ? Sample code

cordova plugin add external .aar file (not .jar)

别来无恙 提交于 2019-12-18 06:44:30
问题 I am writing a plugin to use the native android SDK of filepicker https://github.com/Ink/filepicker-android. On maven central, they only provide an .aar file (http://search.maven.org/#artifactdetails%7Cio.filepicker%7Cfilepicker-android%7C3.8.13%7Caar) and not a .jar. If I add this line in my config.xml <source-file src="src/android/filepicker-android-3.8.13.aar" target-dir="libs/" /> the file is copy in libs but not included in the class path during the build via cordova build , so the build

cordova plugin add external .aar file (not .jar)

人盡茶涼 提交于 2019-12-18 06:44:28
问题 I am writing a plugin to use the native android SDK of filepicker https://github.com/Ink/filepicker-android. On maven central, they only provide an .aar file (http://search.maven.org/#artifactdetails%7Cio.filepicker%7Cfilepicker-android%7C3.8.13%7Caar) and not a .jar. If I add this line in my config.xml <source-file src="src/android/filepicker-android-3.8.13.aar" target-dir="libs/" /> the file is copy in libs but not included in the class path during the build via cordova build , so the build

Custom Plugin for PhoneGap Windows8 that will call c# code

﹥>﹥吖頭↗ 提交于 2019-12-18 05:23:09
问题 I want to develop an application that will display sensor data in both windows8 and android. I'm using phoneGap for some sensors, but, for example, barometer, there is no implementation in phoneGAP. I want to develop a plugin for cordova-windows8. but there is no example in the web for how to do it. I want to call c# function that uses Microsoft.codePack API for sensors in order to display the barometer data. the ApiCodePack uses windows 7 API for sensors. http://archive.msdn.microsoft.com

open an activity from a CordovaPlugin

心不动则不痛 提交于 2019-12-17 23:03:55
问题 I have written a CordavaPlugin derived class. public class ShowMap extends CordovaPlugin { @Override public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException { if (action.compareTo("showMap") == 0) { String message = args.getString(0); this.echo(message, callbackContext); Intent i = new Intent(); return true; } return false; } private void echo(String message, CallbackContext callbackContext) { if (message != null && message.length() > 0) {

Error: more than one library with package name 'com.google.android.gms' using cordova plugin admob along with google plus for android

与世无争的帅哥 提交于 2019-12-17 20:59:41
问题 When using google+ cordova plugin https://github.com/EddyVerbruggen/cordova-plugin-googleplus along with admob plugin https://github.com/appfeel/admob-google-cordova Encounter this error in Cordova CLI: Error: more than one library with package name 'com.google.android.gms' You can temporarily disable this error with android.enforceUniquePackageName=false Looks like one of the plugin is using deprecated references to google play services. While executing gradle build google play services is

connecting to an external database with phonegap-android app

十年热恋 提交于 2019-12-17 19:02:00
问题 I am doing a phone gap-android project for a library system. I don't have much idea about mobile application development. I am using MySQL to create the database and need to populate HTML pages in my application. How can I do it? I have no idea even how to start connecting to an external database. And I want to display existing values in db as well as want to add new values from application. 回答1: Your app will reside on a device(android/iOS). So it will be a client side, more like a browser.

PhoneGap - Detect device type in phonegap

扶醉桌前 提交于 2019-12-17 17:59:44
问题 I'm building an application in phonegap for the three different platforms: Android, iOS And Blackberry. While doing so, I have to detect the device type so that I can manage the height and width of my app on different platforms and for different devices like Android Phone, Android Tablet, iPhone, iPad and Blackberry... 回答1: if you want to get device type before onDeviceReady, you can get like this. var deviceType = (navigator.userAgent.match(/iPad/i)) == "iPad" ? "iPad" : (navigator.userAgent

datePicker plugin not working in Phonegap 2.0

不羁的心 提交于 2019-12-17 17:09:32
问题 After upgrading to Phonegap 2.0, the datePicker plugin does not work. The error is: Uncaught TypeError: Cannot read property 'datePicker' of undefined. the error occcurs on the javascript code: window.plugins.datePicker.show({... The DatePicker js file: /** * Phonegap DatePicker Plugin Copyright (c) Greg Allen 2011 MIT Licensed * Reused and ported to Android plugin by Daniel van 't Oever */ if (typeof cordova !== "undefined") { /** * Constructor */ function DatePicker() { this._callback; } /*

Phonegap - Bring from background to foreground

非 Y 不嫁゛ 提交于 2019-12-17 16:59:54
问题 I'm developing my team along with an application that must run in the background when an event called by sockets should put the application in the foreground . The application must come to foreground similar to viber or whatsapp call. I stopped at this point. My application can now call an audio and vibrate, but I have to draw the screen to the foreground. I'm using version 5.1.1 phonegap. I am this plugin: https://github.com/katzer/cordova-plugin-background-mode Could someone give me a hand?