phonegap-plugins

Inject code in inApp browser and get it's return value in the app

别来无恙 提交于 2019-12-03 11:25:28
问题 I am writing a phonegap app, that's starting a web app inside an inAppBrowser. I would like to get certain feedback from this web app to use it further in my phonegap app. So the user starts the web app, does some things there and upon clicking a button, the web app returns a value to the phonegap app. I thought I could use the executeScript method of the inAppBrowser to inject a function, that would be called inside the web app using some event, and when that function is called, evaluate its

Local Notification in Phonegap [closed]

夙愿已清 提交于 2019-12-03 09:45:14
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I want to have a local notification in my iOS Phonegap app. I followed lots of tutorials and code but no help. Can anyone please guide me. 来源: https://stackoverflow.com/questions/8910119/local-notification-in-phonegap

Android Volume Key Event Capture

落爺英雄遲暮 提交于 2019-12-03 09:07:43
I am currently developing an app for android .. how i can capture the volume key event when user press in android phone i am using phone gap ... Varun Sridharan Use the below code to get the key event Use this code in your existing java class @Override public boolean onKeyDown(int keyCode, KeyEvent event) { //If volume down key if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) { this.loadUrl("javascript:cordova.fireDocumentEvent('volumedownbutton');"); return true; } else if (keyCode == KeyEvent.KEYCODE_VOLUME_UP) { this.loadUrl("javascript:cordova.fireDocumentEvent('volumeupbutton');"); return

PhoneGap missing plist.key

*爱你&永不变心* 提交于 2019-12-03 08:05:21
When I try and load upload my iTunes app installer to iTunes I relieve this error: Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data. Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data. What can I add to my config

PhoneGap Bluetooth Plugin on Android device

独自空忆成欢 提交于 2019-12-03 07:44:28
问题 I've been trying to get a bluetooth plugin for PhoneGap working but I can't seem to figure out where I'm going wrong. Firstly, my test device is a Galaxy S3 (GT-19305T) and the applications were built using the PhoneGap CLI. The plugin I am attempting to use can be found here with an example here. I tried the example which didn't seem to actually do anything. So then I went basic, and tried using the plugins with examples given by PhoneGap. I could quite easily get all of these working. In my

Planning a cordova camera plugin with transparent overlay image

为君一笑 提交于 2019-12-03 06:53:25
I am writing and app which needs to show a transparent image over the camera, for example as a guide for composition. The app has to be shipped at least on iOS and Android. So far, I have found a plugin with a functioning iOS source (okstate-plugin-camera-overlay, available on Github ), and a possibly working solution for Android . None of these is satisfying, both compile and run with a host of warnings and quirks. I think I want to plan a new plugin with this functionality and a clean and minimal implementation. Where could I look for directions for creating a lean plugin supporting both

Receive URL in Ionic for ios

喜欢而已 提交于 2019-12-03 06:50:15
问题 I am using ionic framework. I'm trying to set up a way to receive a url from another app. Like, you are in browser, click share, and send the link to another app (my app). I found this cordova plugin, and have integrated it in my app. But this is pulgin for Android . I need same functionality in IOS. Any idea which plugin i need to use for ios Steps taken by me for Android 1) cordova plugin add git://github.com/Initsogar/cordova-webintent.git 2) Checked config.xml file and found code for

How to copy a custom ios framework using plugin.xml on Phonegap 3

旧街凉风 提交于 2019-12-03 05:55:39
I am currently making a plugin for phonegap 3. I have a custom framework to copy using the source-file directive. In the plugin.xml I tried: <source-file src="libs/ios/mylib.framework" /> but I get the error when I add the plugin to my project: mylib.framework is a directory (not copied) I tried to copy the framework file by file but it is going in the wrong directory. How can I copy a custom ios framework using the plugin.xml file? Good news: it seems that the Cordova folks are working on this as we speak. There is a feature request as well as a commit to GitHub that claims to resolve this

Error in Phonegap Application: Uncaught module cordova/plugin_list already defined

早过忘川 提交于 2019-12-03 04:40:27
I have been trying to resolve many issues from having updated from Phonegap 2 to Phonegap 3.3 but I can't seem to fix this one. I have read from some users that uncaught module exceptions can cause imported plugins to stop functioning. I am having some odd bugs with a local notification plugin so I would like to fix this issue and see if it helps. Here is the error as it appears in logcat within Eclipse: [INFO:CONSOLE(79)] "Uncaught module cordova/plugin_list already defined", source: file:///android_asset/www/cordova.js (79) I know that this is some odd issue arising from the nature of

phonegap: how to check if gps is enabled

泄露秘密 提交于 2019-12-03 04:16:41
I want to show an alert saying that "Please turn on your GPS". How can I get GPS status using phonegap? I have used following code but I don't get any alert message if GPS is turned off. Instead nothing happens. <!DOCTYPE html> <html> <head> <title>Device Properties Example</title> <script type="text/javascript" charset="utf-8" src="cordova.js"></script> <script type="text/javascript" charset="utf-8"> // Wait for device API libraries to load // document.addEventListener("deviceready", onDeviceReady, false); // device APIs are available // function onDeviceReady() { var test= navigator