phonegap-plugins

The Phonegap Barcode Scanner don't recognize any barcode on windows phone

可紊 提交于 2019-12-12 07:25:46
问题 I'm trying to add the Phonegap Barcode scanner plugin to my Phonegap app. I'm primarily developing for windows phone 8 but I also want to target the ios and android platforms. I managed to add the plugin correctly, but when I start the scan, my windows phone doesn't recognize any barcodes. It just shows the video screen with a focus button and a green square. Here's my code for the scan: function Scan() { window.plugins.barcodeScanner.scan(function (result) { barcode = result; alert(barcode

Prevent 180 degree flip iOS Cordova

我们两清 提交于 2019-12-12 06:48:24
问题 I am using this plugin https://github.com/apache/cordova-plugin-screen-orientation for orientation and I'm doing this in config.xml file <preference name="orientation" value="portrait" /> . This prevents it flipping to landscape mode, but can still file 180 degrees on my iPhone. How can I prevent this? 回答1: You can disable this by unchecking the upside down orientation in Xcode. 回答2: the orientation preferences are not for the cordova-plugin-orientation , those are regular cordova preferences

How to run iPhone as a beacon in background in both xcode(swift) and phonegap

懵懂的女人 提交于 2019-12-12 06:37:32
问题 I managed to create an app which turns the phone into a beacon emitter. It works fine on xcode (Swift) and phonegap . The next step for me is making it work in the background as a beacon (I'm developing for iOS 10). I found similar questions to this online but all of them were out of date ie old ios , objective-C and outdate plug-ins would really appreciate it if someone can provide me with a working example or guide me on what to change in my code for both an xcode s(wift) and phonegap Xcode

When updating code in Phonegap, Malformed config.xml error

会有一股神秘感。 提交于 2019-12-12 06:09:19
问题 I am trying to build a PhoneGap project. If I try to compile my code using PhoneGap Build I get a malformed config.xml error. Everytime I try to upload it, it becomes malformed. This is my config.xml : <?xml version="1.0" encoding="utf-8"?> <widget id="com.ksrsac.demo" version="1.0.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" > <name>Mapbox</name> <description>Mapbox GIS</description> <author href="http://cordova.io" email="dev@cordova.apache.org">Ksrsac<

Android PhoneGap - mwbrooks / cordova-plugin-menu

亡梦爱人 提交于 2019-12-12 06:01:37
问题 I tried installing the following plugin with no luck: https://github.com/mwbrooks/cordova-plugin-menu I'm using PhoneGap 1.7.0 I have the basic PhoneGap project setup and running fine (Android 4.0.3): http://docs.phonegap.com/en/1.7.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android I do not fully understand how to install the plugin, but I did the following: 1) Copied the \native\android\src\com\ to my project \src directory. 2) Copied the \native\android\libs

Error cannot find symbol org.apache.cordova.CordovaHttpAuthHandler using InAppBrowser Cordova 5.3.3

◇◆丶佛笑我妖孽 提交于 2019-12-12 05:32:02
问题 I am developing a hybrid mobile app using cordova and Multi-Device hybrid app , I get this error when I try to run the build the app for device or emulator [javac] C:\phonegap\projects\JarChee\Mobile\JarCheeMobileApp\JarChee\bld\Debug\platforms\android\src\org\apache\cordova\inappbrowser\InAppBrowser.java:56: error: cannot find symbol [javac] import org.apache.cordova.CordovaHttpAuthHandler; [javac] ^ [javac] symbol: class CordovaHttpAuthHandler [javac] location: package org.apache.cordova

Phonegap/Cordova inAppPurchaseManager invalid product ids

眉间皱痕 提交于 2019-12-12 05:26:36
问题 I'm using the Phonegap/Cordova plugin for In App Purchases: InAppPurchaseManager with Cordova 1.7 and I am getting through to the store it seems but it is not finding the product. I've set up the app with the correct provisioning profile and I've added products to that app in iTunes Connect correctly to the best of my knowledge. I've searched high and low for the error message I am getting back but there just isn't much info about it on the interwebs. The most plausible solution that I've

sendJavascript function not defined error in Cordova Plugin salesforce

不羁的心 提交于 2019-12-12 05:11:57
问题 I am trying to create a salesforce plugin in which i want to push data back to JS from my java code (which is basically a background process) But its always giving me error for line this.sendJavascript(function name) following is plugin code - package com.salesforce.androidsdk.phonegap; import org.apache.cordova.api.CallbackContext; import org.apache.cordova.api.CordovaPlugin; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.content.Context;

Cordova Network and Camera API returns undefined

别等时光非礼了梦想. 提交于 2019-12-12 04:54:09
问题 Building my first Cordova 4.0 app, and I would really need some help since I'm gonna show a demo of this app tmrw... When I try to access the Network info API and the Camera API ( navigator.connection and navigator.camera respectively) they always return undefined. I have these right in my Android manifest: <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.CAMERA" /> <uses-feature android:name="android.hardware.camera" /> <uses

How to get email notification in email composer plugin in phonegap

旧城冷巷雨未停 提交于 2019-12-12 04:38:26
问题 I am working on email attachment using email composer plugin in phonegap. I imsert .h .m file and .js file. But i don't get any notification of email sent or fail. Link here: https://github.com/GalCohen/EmailComposer-phonegap-plugin. How to get these status 0: email composition cancelled (cancel button pressed and draft not saved) 1: email saved (cancel button pressed but draft saved) 2: email sent 3: send failed 4: email not sent (something wrong happened) window.plugins.emailComposer