phonegap-plugins

phonegap capture plugin captureVideo not working phonegap 3.0.0-0.14.3

末鹿安然 提交于 2019-12-08 02:25:35
问题 I have plugin org.apache.cordova.core.media-capture installed successfully. Which I did on my project with phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture.git navigator.device.capture.captureVideo function does not respond to the call. Nothing happens on the phone. If I put an alert in front of and in back of the call to it, the first alert pops but the second never happens. I would expect a failure to go to the captureError callback function and

PhoneGap iOS LocalNotifications Daylight Savings

℡╲_俬逩灬. 提交于 2019-12-08 01:40:47
问题 I'm using (the infamous) Drew Dahlman's Phonegap Local Notifications in iOS. And it seems to work. I have never written a line of objective-c and would prefer not to (which is probably why I'm having trouble now!) but I think the plugin is not working quite right and would like to fix it if possible. When I set a notification for today at 13:00 it fires correctly. However when daylight savings is in play the notification fires at 14:00, an hour late. Is this because timezones are not being

Cordova: Create socket server

纵然是瞬间 提交于 2019-12-08 01:22:18
问题 I want to make a chat mobile app with corodva, I want to transmit messages from phone to another phone directly without a server in the middle . So I'm thinking about a socket communication throught a socket server on one of the phones and exchanging messages directly. Is there a way to create a socket server with cordova like in Java ServerSocket ? 回答1: Yes, there is a way, use the chrome socket plugin: cordova-plugin-chrome-apps-socket The point is, the documentation is not very easy, but

Why do you need 2 Javascript files for cross-platform Cordova plugin?

江枫思渺然 提交于 2019-12-08 00:24:25
In this article here , I quote: Catch about different Platforms Before it comes as a surprise to you, let me clarify some things. Say you are developing a Phonegap plugin for 2 platforms: iOS and Android. One might assume that we need to churn out: a single JavaScript file that will be used on both iOS and Android; one Java file for Android One .h and One .m for iOS However, in reality you will need to churn out: one Javascript file for Android, along with a Java file for Android; a different Javascript file for iOS, alone with pair of .h and .m file for iOS. Both Javascript files can (and

Phonegap Android Contact Picker Plugin (updating a plugin)

旧街凉风 提交于 2019-12-07 23:08:20
问题 In my PhoneGap app, I am trying to get the native Android contact picker to launch so I can fetch some phone numbers. I researched online and couldn't find much until I saw the ContactView plugin: https://github.com/phonegap/phonegap-plugins/tree/master/Android/ContactView When I set up the plugin according to the instructions, I encountered errors everywhere in its ContactView.java file. It seems that it is using a very old version of the plugin structure with ctx and other deprecated

PhoneGap App rejected 10.6

落花浮王杯 提交于 2019-12-07 13:13:21
问题 Our PhoneGap App just got rejected. Binary Rejected: 10.6: Apple and our customers place a high value on simple, refined, creative, well thought through interfaces. They take more work but are worth it. Apple sets a high bar. If your user interface is complex or less than very good it may be rejected Text: "We found the following issues with the user interface of your app: Did not include iOS features. For example, it would be appropriate to use native iOS buttons and iOS features other than

traverse through each file in SD card using phonegap file api

落爺英雄遲暮 提交于 2019-12-07 13:13:09
问题 I want to traverse through each file in the SD card inside all the directories and sub directories using the FILE API of phonegap (which is the w3c file api actually). I have to perform a certain set of operations on these files by looking at their nature. I donot want to search for specific types of files, but traverse through each file in a sequential manner. Can someone please help me with this? Just a basic loop framework with the necessary requirements for the traversal would be a great

Continuous speech recognition with phonegap

蓝咒 提交于 2019-12-07 07:58:33
问题 I want to create app in phonegap with continuous speech recognition in Android and IOS. My app should wait for user voice and when he/she say "next", app should update screen and do some actions. I find this plugin: https://github.com/macdonst/SpeechRecognitionPlugin and it works really fast. But after few seconds after voice recognition is started and there is no voice, speech recogniser stops. Is there any method or flag like isSpeechRecognizerAlive or any other solution? Or is it possible

Cordova app is saving DOM loaded data using AJAX on Android app's Data space

对着背影说爱祢 提交于 2019-12-07 07:23:40
My Cordova+JQM application has multiple templates (across sub-pages and multiple HTML documents) which are filled with data requested using AJAX. My issue is, my application's size increases each time I load the data in my template, doesn't matter if I have opened it before. And the app's details do not show an increase in Cache , but in Data . The cache is minimum, like a few kbs, but Data goes in MBs. I have not enabled data-dom-cache of JQM. I even tried to call a function to empty the DOM data before leaving the template(that is from one HTML file to another) like this: $( document ).on(

Cordova/Phonegap: Can't get Facebook Phonegap plugin to work

本小妞迷上赌 提交于 2019-12-07 05:02:43
问题 I tried creating a Cordova/Phonegap app and adding the Facebook plugin, but alert(typeof facebookConnectPlugin); shows undefined: sudo npm install -g cordova cordova create hello com.example.hello HelloWorld cd hello cordova platform add ios cordova -d plugin add https://github.com/phonegap/phonegap-facebook-plugin --variable APP_ID="1415347585409217" --variable APP_NAME="Test" vi www/index.html # Add: alert(typeof facebookConnectPlugin); to the last <script> cordova emulate ios Expected: The